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

/* Animations */

@keyframes mobileFadeIn {
    from { 
        opacity: 0; 
        transform: translateY(30px) scale(0.95); 
        filter: blur(2px);
    }
    to { 
        opacity: 1; 
        transform: translateY(0) scale(1); 
        filter: blur(0);
    }
}

@keyframes glowPulse {
    0%, 100% {
        box-shadow: 0 0 5px rgba(0, 27, 96, 0.3), 0 0 10px rgba(0, 27, 96, 0.2), 0 0 15px rgba(1, 3, 29, 0.1);
    }
    50% {
        box-shadow: 0 0 20px rgba(0, 27, 96, 0.6), 0 0 30px rgba(0, 27, 96, 0.4), 0 0 40px rgba(1, 3, 29, 0.3);
    }
}

@keyframes slideInFromLeft {
    0% {
        opacity: 0;
        transform: translateX(-100px) rotateY(-20deg);
        filter: blur(3px);
    }
    100% {
        opacity: 1;
        transform: translateX(0) rotateY(0deg);
        filter: blur(0);
    }
}

@keyframes slideInFromRight {
    0% {
        opacity: 0;
        transform: translateX(100px) rotateY(20deg);
        filter: blur(3px);
    }
    100% {
        opacity: 1;
        transform: translateX(0) rotateY(0deg);
        filter: blur(0);
    }
}

@keyframes typewriter {
    from {
        width: 0;
    }
    to {
        width: 100%;
    }
}

@keyframes blink {
    0%, 50% {
        border-color: transparent;
    }
    51%, 100% {
        border-color: var(--primary-color);
    }
}

@keyframes particleFloat {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
        opacity: 0.7;
    }
    33% {
        transform: translateY(-20px) rotate(120deg);
        opacity: 1;
    }
    66% {
        transform: translateY(-10px) rotate(240deg);
        opacity: 0.8;
    }
}

@keyframes magneticHover {
    0% {
        transform: scale(1) rotate(0deg);
    }
    50% {
        transform: scale(1.05) rotate(2deg);
    }
    100% {
        transform: scale(1.02) rotate(-1deg);
    }
}

@keyframes liquidMorph {
    0%, 100% {
        border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
    }
    25% {
        border-radius: 30% 60% 70% 40% / 50% 60% 30% 60%;
    }
    50% {
        border-radius: 50% 40% 60% 30% / 40% 70% 60% 50%;
    }
    75% {
        border-radius: 40% 70% 50% 60% / 70% 50% 40% 30%;
    }
}

@keyframes scaleUp {
    from { 
        opacity: 0; 
        transform: scale(0.7) rotate(-2deg); 
        filter: blur(3px);
    }
    50% {
        opacity: 0.8;
        transform: scale(1.05) rotate(1deg);
        filter: blur(1px);
    }
    to { 
        opacity: 1; 
        transform: scale(1) rotate(0deg); 
        filter: blur(0);
    }
}

@keyframes marquee {
    0% { transform: translateX(100vw); }
    100% { transform: translateX(-100%); }
}

@keyframes profileBounce {
    0% { transform: translateY(0) scale(1); }
    25% { transform: translateY(-5px) scale(1.02); }
    50% { transform: translateY(-15px) scale(1.05); }
    75% { transform: translateY(-5px) scale(1.02); }
    100% { transform: translateY(0) scale(1); }
}

@keyframes slideInLeft {
    from { 
        opacity: 0; 
        transform: translateX(-80px) rotateY(-15deg); 
        filter: blur(2px);
    }
    to { 
        opacity: 1; 
        transform: translateX(0) rotateY(0deg); 
        filter: blur(0);
    }
}

@keyframes slideInRight {
    from { 
        opacity: 0; 
        transform: translateX(80px) rotateY(15deg); 
        filter: blur(2px);
    }
    to { 
        opacity: 1; 
        transform: translateX(0) rotateY(0deg); 
        filter: blur(0);
    }
}

@keyframes pulse {
    0%, 100% { 
        transform: scale(1); 
        box-shadow: 0 0 0 0 rgba(0, 27, 96, 0.4);
    }
    50% { 
        transform: scale(1.05); 
        box-shadow: 0 0 0 10px rgba(0, 27, 96, 0);
    }
}

@keyframes messageFadeIn {
    from { 
        opacity: 0; 
        transform: translateY(15px) scale(0.95); 
        filter: blur(1px);
    }
    to { 
        opacity: 1; 
        transform: translateY(0) scale(1); 
        filter: blur(0);
    }
}

@keyframes gradientGlow {
    0% { 
        box-shadow: 0 0 5px rgba(0, 27, 96, 0.3), 0 0 10px rgba(0, 27, 96, 0.2), 0 0 15px rgba(1, 3, 29, 0.1); 
    }
    50% { 
        box-shadow: 0 0 10px rgba(0, 27, 96, 0.5), 0 0 20px rgba(0, 27, 96, 0.3), 0 0 30px rgba(1, 3, 29, 0.2); 
    }
    100% { 
        box-shadow: 0 0 5px rgba(0, 27, 96, 0.3), 0 0 10px rgba(0, 27, 96, 0.2), 0 0 15px rgba(1, 3, 29, 0.1); 
    }
}

@keyframes darkGradientGlow {
    0% { 
        box-shadow: 0 0 5px rgba(255, 255, 255, 0.3), 0 0 10px rgba(255, 255, 255, 0.2), 0 0 15px rgba(211, 211, 211, 0.1); 
    }
    50% { 
        box-shadow: 0 0 10px rgba(255, 255, 255, 0.5), 0 0 20px rgba(255, 255, 255, 0.3), 0 0 30px rgba(211, 211, 211, 0.2); 
    }
    100% { 
        box-shadow: 0 0 5px rgba(255, 255, 255, 0.3), 0 0 10px rgba(255, 255, 255, 0.2), 0 0 15px rgba(211, 211, 211, 0.1); 
    }
}

@keyframes bounce {
    0%, 20%, 53%, 80%, 100% {
        transform: translateY(0) scale(1);
    }
    40%, 43% {
        transform: translateY(-8px) scale(1.02);
    }
    70% {
        transform: translateY(-4px) scale(1.01);
    }
    90% {
        transform: translateY(-2px) scale(1.005);
    }
}

@keyframes buttonBounce {
    0% { 
        transform: translateY(0) scale(1); 
        box-shadow: 0 2px 8px rgba(0, 27, 96, 0.2);
    }
    50% { 
        transform: translateY(-6px) scale(1.03); 
        box-shadow: 0 8px 25px rgba(0, 27, 96, 0.4);
    }
    100% { 
        transform: translateY(-3px) scale(1.01); 
        box-shadow: 0 5px 15px rgba(0, 27, 96, 0.3);
    }
}

@keyframes popIn {
    0% { 
        opacity: 0; 
        transform: scale(0.6) rotate(-10deg); 
        filter: blur(3px);
    }
    50% {
        opacity: 0.8;
        transform: scale(1.15) rotate(5deg);
        filter: blur(1px);
    }
    70% { 
        opacity: 1; 
        transform: scale(1.05) rotate(-2deg); 
        filter: blur(0.5px);
    }
    100% { 
        opacity: 1; 
        transform: scale(1) rotate(0deg); 
        filter: blur(0);
    }
}

@keyframes fadeIn {
    0% { 
        opacity: 0; 
        transform: translateY(10px);
        filter: blur(1px);
    }
    100% { 
        opacity: 1; 
        transform: translateY(0);
        filter: blur(0);
    }
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes logoPulse {
    0%, 100% { 
        transform: scale(1); 
        filter: brightness(1);
    }
    50% { 
        transform: scale(1.08); 
        filter: brightness(1.1);
    }
}

@keyframes logoSpin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    33% {
        transform: translateY(-10px) rotate(1deg);
    }
    66% {
        transform: translateY(-5px) rotate(-1deg);
    }
}

@keyframes morphGlow {
    0%, 100% {
        border-radius: 12px;
        box-shadow: 0 0 20px rgba(0, 27, 96, 0.3);
    }
    25% {
        border-radius: 20px;
        box-shadow: 0 0 30px rgba(0, 27, 96, 0.5);
    }
    50% {
        border-radius: 8px;
        box-shadow: 0 0 40px rgba(1, 3, 29, 0.4);
    }
    75% {
        border-radius: 16px;
        box-shadow: 0 0 25px rgba(0, 27, 96, 0.6);
    }
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(50px) scale(0.9);
        filter: blur(2px);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
        filter: blur(0);
    }
}

@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-50px) scale(0.9);
        filter: blur(2px);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
        filter: blur(0);
    }
}

@keyframes zoomIn {
    from {
        opacity: 0;
        transform: scale(0.3) rotate(10deg);
        filter: blur(5px);
    }
    50% {
        opacity: 0.7;
        transform: scale(1.1) rotate(-5deg);
        filter: blur(2px);
    }
    to {
        opacity: 1;
        transform: scale(1) rotate(0deg);
        filter: blur(0);
    }
}

@keyframes textGlow {
    0%, 100% {
        text-shadow: 0 0 5px rgba(0, 27, 96, 0.3);
    }
    50% {
        text-shadow: 0 0 20px rgba(0, 27, 96, 0.6), 0 0 30px rgba(1, 3, 29, 0.4);
    }
}

@keyframes cardHover {
    0% {
        transform: translateY(0) scale(1);
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    }
    100% {
        transform: translateY(-8px) scale(1.02);
        box-shadow: 0 12px 40px rgba(0, 27, 96, 0.2);
    }
}

@keyframes ripple {
    0% {
        transform: scale(0);
        opacity: 1;
    }
    100% {
        transform: scale(4);
        opacity: 0;
    }
}

@keyframes neonGlow {
    0%, 100% {
        text-shadow: 0 0 5px rgba(0, 27, 96, 0.5), 0 0 10px rgba(0, 27, 96, 0.5), 0 0 15px rgba(0, 27, 96, 0.5);
    }
    50% {
        text-shadow: 0 0 10px rgba(0, 27, 96, 0.8), 0 0 20px rgba(0, 27, 96, 0.8), 0 0 30px rgba(0, 27, 96, 0.8), 0 0 40px rgba(1, 3, 29, 0.6);
    }
}

@keyframes backgroundShift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

@keyframes elasticScale {
    0% {
        transform: scale(1);
    }
    30% {
        transform: scale(1.25);
    }
    40% {
        transform: scale(0.75);
    }
    50% {
        transform: scale(1.15);
    }
    65% {
        transform: scale(0.95);
    }
    75% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    text-decoration: none;
    list-style: none;
    font-family: "Poppins", sans-serif;
    scroll-behavior: smooth;
}
@keyframes rotateBorder {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* Scroll Behavior */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

h1, h2, h3, h4, h5, h6{
font-family: 'Playfair Display', Georgia, Cambria, "Times New Roman", Times, serif;
font-weight: 500;
margin-bottom: 0.5em;
background: var(--gradient);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
background-clip: text;
color: transparent;
}

h1 {
    font-size: 3rem;
    line-height: 1.2;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.75rem;
}

#greetingPopup .greeting-card h2#greeting-text {
    font-family: 'Playfair Display', Georgia, Cambria, "Times New Roman", Times, serif;
    font-size: 1.5rem;
    font-weight: 500;
    color: #fff;
    background: none !important;
    -webkit-background-clip: initial !important;
    -webkit-text-fill-color: initial !important;
    background-clip: initial !important;
}

/* Dark mode: Gradient text */
body.dark-mode #greetingPopup .greeting-card h2#greeting-text {
    color: #001b60;
}
/* Loading Animation */
.page-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--background);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 1;
    transition: opacity 0.5s ease;
}

.page-loader.hidden {
    opacity: 0;
    pointer-events: none;
}

:root {
    --background: #f8fafc;
    --second-background: #CACACA;
    --primary-color: #001b60;
    --dark-color: #01031d;
    --text-color: #000000;
    --card-bg: #FFFFFF;
    --gradient: linear-gradient(to right, #001b60, #01031d);
    --footer-bg: #e2e8f0; 
}

body.dark-mode {
    --background: #1A1A1A;
    --second-background: #333333;
    --text-color: #FFFFFF;
    --card-bg: #2A2A2A;
    --gradient: linear-gradient(to right, #FFFFFF, #D3D3D3);
    --footer-bg: #2d3748; 
}
body {
    background-color: var(--background);
    color: var(--text-color);
    min-height: 100vh;
    transition: background-color 0.3s ease, color 0.3s ease;
    animation: fadeIn 0.8s ease-out;
}
body.menu-open {
    overflow: hidden;
    /* touch-action: none; */
}

body.menu-open input,
body.menu-open textarea,
body.menu-open select {
    pointer-events: auto;
    touch-action: auto;
}

/* Gradient Text */
span, .about-info p, .skills ul, .author-info h3, .cta-heading, .marquee, .faq-intro, .contact-intro {
    background: var(--gradient);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
}

section.mobile-scroll,
div.mobile-scroll:not(.greeting-popup):not(.greeting-card) {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1), transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

section.mobile-scroll.visible,
div.mobile-scroll.visible:not(.greeting-popup):not(.greeting-card) {
    opacity: 1;
    transform: translateY(0);
    animation: slideInUp 0.8s ease-out;
}

.mobile-scroll:nth-child(1) { transition-delay: 0.1s; }
.mobile-scroll:nth-child(2) { transition-delay: 0.2s; }
.mobile-scroll:nth-child(3) { transition-delay: 0.3s; }
.mobile-scroll:nth-child(4) { transition-delay: 0.4s; }
.mobile-scroll:nth-child(5) { transition-delay: 0.5s; }

/* Greeting Popup */
.greeting-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7); 
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease; 
}

.greeting-popup.visible {
    opacity: 1;
    visibility: visible;
}

.greeting-card {
    position: relative;
    background: linear-gradient(to right, #001b60, #01031d);
    backdrop-filter: blur(30px);
    border-radius: 12px; 
    padding: 2em; 
    max-width: 500px; 
    width: 90%;
    text-align: center;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    color: #ffffff; 
    display: flex; 
    flex-direction: column; 
    gap: 1em; 
    animation: scaleUp 0.5s ease-out;
}

body.dark-mode .greeting-card {
    background: linear-gradient(to right, #FFFFFF, #D3D3D3); 
    color: #01031d; 
}

.greeting-card h2 {
    font-size: 1.3em; 
    font-weight: 500;
    margin-bottom: 0.4em; 
}

.greeting-card p {
    font-size: 0.75em; 
    line-height: 1.5; 
    opacity: 0.9;
    margin-bottom: 0.6em; 
}

.greeting-card #greeting-message {
    font-size: 0.75em; 
    line-height: 2; 
    opacity: 0.9;
    margin-bottom: 0.8em; 
    animation: messageFadeIn 0.5s ease-out forwards;
}

.greeting-card #greeting-message.hidden {
    display: none; 
}

.greeting-card #closePopup {
    position: absolute;
    top: 10px; 
    right: 10px; 
    font-size: 1.5em; 
    color: #ffffff; 
    cursor: pointer;
    transition: transform 0.3s ease;
}


body.dark-mode .greeting-card #closePopup {
    color: #01031d; 
}

.greeting-card #closePopup:hover {
    transform: rotate(90deg);
}

.greeting-card #user-name-display {
    color: #ffffff;
    background: none !important;
    -webkit-background-clip: initial !important;
    -webkit-text-fill-color: initial !important;
    font-weight: 500;
    padding: 0 3px; 
    border-radius: 3px;
    display: inline-block;
}

body.dark-mode .greeting-card #user-name-display {
    color: #01031d; 
}

/* Navigation */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 0.8em 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    z-index: 1000; 
    /* border-radius: 30px; */
    border: 0.8px solid transparent;
    transition: transform 0.3s ease; 
}
nav a,
nav .btn, button, .btn,
input[type="submit"],
label,
.select {
    cursor: pointer;
}
nav.hidden {
    transform: translateY(-100%);
}

body.dark-mode nav {
    background-color: var(--card-bg);
}

.logo {
    font-size: clamp(1.5em, 5vw, 2em);
    font-weight: 400;
    color: var(--text-color);
    opacity: 0.8;
    transition: opacity 0.3s ease, color 0.3s ease;
}

body.dark-mode .logo {
    background: var(--gradient);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
}

.logo:hover {
    opacity: 1;
    background: var(--gradient);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
}

nav ul {
    display: flex;
    gap: 1.5em;
}

nav ul a {
    color: var(--text-color);
    opacity: 0.7;
    font-size: 0.875em;
    position: relative;
    transition: all 0.3s ease;
}

body.dark-mode nav ul a {
    background: var(--gradient);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
}

nav ul a:hover {
    opacity: 1;
    background: linear-gradient(135deg, #0056b3, var(--primary-color));
    background-clip: text;
    -webkit-background-clip: text;
    animation: magneticHover 0.6s ease-out, elasticScale 0.8s ease-out;
}

nav ul a.active {
    opacity: 1;
    background: var(--gradient);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
}

nav ul a::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: -2px;
    height: 2px;
    background: transparent;
    transition: background 0.3s ease;
}

nav ul a:hover::after,
nav ul a.active::after {
    background: var(--gradient);
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 0.8em;
}

.btn.nav-btn {
    padding: clamp(0.8em, 2vw, 1em) clamp(1.5em, 3vw, 2em);
    border-radius: 15px;
    border: none;
    font-size: clamp(0.9em, 3vw, 1em);
    font-weight: 500;
    letter-spacing: 1px;
    background: linear-gradient(135deg, var(--primary-color), #001b60);
    color: white;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    outline: none;
    touch-action: manipulation;
    box-shadow: 0 4px 15px rgba(0, 27, 96, 0.2);
    backdrop-filter: blur(10px);
    overflow: hidden;
    font-family: 'Poppins', sans-serif;
    animation: glowPulse 3s ease-in-out infinite;
}

body.dark-mode .btn.nav-btn {
    border: 1px solid #FFFFFF;
    color: #FFFFFF;
    animation: darkGradientGlow 2s ease-in-out infinite;
}

.btn.nav-btn:hover {
    background: linear-gradient(135deg, #0056b3, var(--primary-color));
    color: white;
    box-shadow: 0 8px 25px rgba(0, 27, 96, 0.4), 0 0 0 3px rgba(0, 27, 96, 0.1);
    transform: translateY(-3px) scale(1.05);
    animation: magneticHover 0.6s ease-out, elasticScale 0.8s ease-out;
}

body.dark-mode .btn.nav-btn:hover {
    background: linear-gradient(to right, rgba(255, 255, 255, 0.7), rgba(211, 211, 211, 0.7));
    color: #01031d;
    animation: none;
}

.btn.nav-btn:focus {
    outline: 3px solid var(--primary-color);
    outline-offset: 2px;
}

body.dark-mode .btn.nav-btn:focus {
    outline: 3px solid #FFFFFF;
}

.mode-toggle {
    display: flex;
    align-items: center;
    cursor: pointer;
}

.mode-toggle i {
    font-size: 1.2em;
    background: var(--gradient);
    -webkit-background-clip: text;
    color: transparent;
    transition: transform 0.3s ease;
}

.mode-toggle:hover i {
    background: var(--gradient);
    -webkit-background-clip: text;
    color: #01031d;
    transform: scale(1.1);
}

.menu-toggle-container {
    display: flex;
    align-items: center;
    gap: 0.5em;
}

.btn {
    padding: clamp(0.8em, 2vw, 1em) clamp(1.5em, 3vw, 2em);
    border-radius: 15px;
    border: none;
    font-size: clamp(0.9em, 3vw, 1em);
    font-weight: 500;
    letter-spacing: 1px;
    background: linear-gradient(135deg, var(--primary-color), #001b60);
    color: white;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    outline: none;
    touch-action: manipulation;
    box-shadow: 0 4px 15px rgba(0, 27, 96, 0.2);
    backdrop-filter: blur(10px);
    overflow: hidden;
    font-family: 'Poppins', sans-serif;
    animation: glowPulse 3s ease-in-out infinite;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.6s ease;
}

.btn:hover::before {
    left: 100%;
}

.btn:hover {
    background: linear-gradient(135deg, #0056b3, var(--primary-color));
    color: white;
    box-shadow: 0 8px 25px rgba(0, 27, 96, 0.4), 0 0 0 3px rgba(0, 27, 96, 0.1);
    transform: translateY(-3px) scale(1.05);
    animation: magneticHover 0.6s ease-out, elasticScale 0.8s ease-out;
}

.btn:active {
    transform: translateY(-1px) scale(1.02);
    box-shadow: 0 4px 15px rgba(0, 27, 96, 0.3);
}

body.dark-mode .btn {
    background: linear-gradient(135deg, #333333, #555555);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

body.dark-mode .btn:hover {
    background: linear-gradient(135deg, #FFFFFF, #D3D3D3);
    color: #01031d;
    box-shadow: 0 8px 25px rgba(255, 255, 255, 0.4), 0 0 0 3px rgba(255, 255, 255, 0.1);
    transform: translateY(-3px) scale(1.05);
    animation: magneticHover 0.6s ease-out, elasticScale 0.8s ease-out;
}

.btn.outline {
    background: transparent;
    color: var(--primary-color);
    border: none; 
    box-shadow: inset 0 0 0 2px var(--primary-color); 
    outline: none; 
}

body.dark-mode .btn.outline {
    background: transparent;
    color: #FFFFFF;
    box-shadow: inset 0 0 0 2px #FFFFFF; 
}

.btn.outline:hover {
    background: var(--gradient);
    color: white;
    box-shadow: 0 4px 12px rgba(0, 27, 96, 0.3);
    transform: translateY(-2px);
    animation: buttonBounce 0.4s ease-out;
}

body.dark-mode .btn.outline:hover {
    background: linear-gradient(to right, #FFFFFF, #D3D3D3);
    color: #01031d;
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
    animation: buttonBounce 0.4s ease-out;
}

/* Updated focus styles */
.btn:focus {
    outline: none; 
    box-shadow: 0 4px 12px rgba(0, 27, 96, 0.3); 
}

body.dark-mode .btn:focus {
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.3); 
}

.btn.outline:focus {
    outline: none;
    box-shadow: 0 4px 12px rgba(0, 27, 96, 0.3);
}

body.dark-mode .btn.outline:focus {
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.3);
}
.menu-toggle {
    display: none;
}

#menu-open, #menu-close {
    font-size: 2em;
    color: #333333;
    transition: opacity 0.3s ease;
}

body.dark-mode #menu-open, body.dark-mode #menu-close {
    background: var(--gradient);
    -webkit-background-clip: text;
    color: transparent;
}

/* Section Styling */
section {
    padding: 2em 5%;
    margin-top: 3em;
    min-height: 50vh;
    margin-bottom: 3em;
}

.content-section {
    margin-top: 60px;
    margin-bottom: 20px;
}

/* Home Section */
#home {
    font-family: 'Playfair Display', Georgia, Cambria, "Times New Roman", Times, serif;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.5em;
    text-align: center;
    padding-top: 4em;
    background-color: var(--background);
    margin-top: 1em;
}

#home .profile-img {
    width: 40vw;
    max-width: 300px;
    border-radius: 50px;
    animation: profileBounce 2s ease-in-out infinite;
}

.info-box {
    max-width: 600px;
    display: flex;
    flex-direction: column;
    gap: 0.4em;
}

.info-box h1 {
    font-size: clamp(2em, 8vw, 3em);
    font-weight: 500;
}

.info-box h3 {
    font-size: clamp(1em, 4vw, 1.2em);
    font-weight: 300;
}

.info-box p {
    opacity: 0.7;
}

.btn-box {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1em;
}

.btn-box .btn:nth-child(1) {
    background: var(--primary-color);
    color: var(--background);
    border: 1px solid var(--dark-color);
}

body.dark-mode .btn-box .btn:nth-child(1) {
    background: #333333;
    color: #FFFFFF;
    border: 1px solid #FFFFFF;
}

.btn-box .btn:nth-child(1):hover {
    background: var(--gradient);
    color: white;
}

body.dark-mode .btn-box .btn:nth-child(1):hover {
    background: #001b60;
}

.btn-box .btn:nth-child(2) {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

body.dark-mode .btn-box .btn:nth-child(2) {
    background: transparent;
    color: #FFFFFF;
    border: 2px solid #FFFFFF;
}

.btn-box .btn:nth-child(2):hover {
    background: var(--gradient);
    color: white;
}

body.dark-mode .btn-box .btn:nth-child(2):hover {
    background: #001b60;
}

/* About Section */
#about {
    background-color: var(--second-background);
    padding: 3em 5% 2em 5%;
    min-height: 50vh;
}

.about-container {
    display: flex;
    flex-direction: column;
    gap: 1.5em;
    max-width: 1200px;
    margin: 0 auto;
}

.about-content {
    display: flex;
    flex-direction: row;
    gap: 2em;
    align-items: center;
}

.about-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1em;
    text-align: left;
}
.about-info p {
    margin-bottom: 2em;
}

.about-info h1 {
    font-size: clamp(1.5em, 6vw, 2em);
    font-weight: 500;
}

.about-image {
    flex: 0 0 320px;
    width: 100%;
    max-width: 320px;
    height: auto;
    border-radius: 1em;
    object-fit: cover;
}

.continue-reading {
    display: inline-flex;
    align-items: center;
    gap: 0.3em;
    color: var(--primary-color);
    font-size: 0.9em;
    font-weight: 400;
    transition: color 0.3s ease;
    animation: pulse 3s ease-in-out infinite;
    border-radius: 20px;
    cursor: pointer;
    width: fit-content;
    max-width: 100%;
}

body.dark-mode .continue-reading {
    color: #FFFFFF;
}

.continue-reading i {
    background: var(--gradient);
    -webkit-background-clip: text;
    color: transparent;
}

.continue-reading:hover {
    color: var(--dark-color);
}

body.dark-mode .continue-reading:hover {
    color: #D3D3D3;
}

/* Skills Section */
.skills {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2em 0;
}

.skills-heading {
    font-size: clamp(1.5em, 6vw, 2em);
    font-weight: 500;
    text-align: center;
    margin-bottom: 1.5em;
}

.skills-content {
    display: flex;
    justify-content: center;
    gap: 2em;
    width: 100%;
}

.focus-section, .skills-progress {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1em;
}

.focus-section {
    align-items: flex-start;
}

.focus-section h3 {
    font-size: clamp(1.2em, 4vw, 1.5em);
    font-weight: 500;
    text-align: left;
    margin: 0;
}

.focus-list ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.focus-list ul li {
    font-size: 0.9em;
    line-height: 1.8;
    color: var(--text-color);
    opacity: 0.9;
    text-align: left;
}

.skills-progress ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.skills-progress ul li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1em;
}

.skills-progress ul li span {
    font-size: 0.9em;
    color: var(--text-color);
    opacity: 0.9;
    flex: 0 0 120px;
}

.progress-bar {
    flex: 1;
    height: 10px;
    max-width: 100%;
    background-color: #e0e0e0;
    border-radius: 5px;
    overflow: hidden;
}

.progress {
    height: 100%;
    background: var(--gradient);
    border-radius: 5px;
    transition: width 1s ease-in-out;
}

.slide-left {
    opacity: 0;
    transform: translateX(-100px);
}

.slide-right {
    opacity: 0;
    transform: translateX(100px);
}

.slide-left.visible {
    animation: slideInLeft 0.8s ease forwards;
}

.slide-right.visible {
    animation: slideInRight 0.8s ease forwards;
}


/* Projects Section */
#projects {
    background-color: var(--background);
    padding: 3em 5% 2em 5%;
}

.projects-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1em;
}

.header {
    text-align: center;
    font-size: clamp(2em, 6vw, 2.5em);
    font-weight: 500;
    margin-bottom: 1em;
}

.projects-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(clamp(250px, 80vw, 280px), 1fr));
    gap: clamp(12px, 3vw, 16px);
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1em; 
    box-sizing: border-box;
}
.project-card {
    max-width: 100%;
    box-sizing: border-box;
}

.box, .project-card {
    border: 2px solid #313131;
    border-radius: 12px;
    padding: 1.5em;
    display: flex;
    flex-direction: column;
    gap: 1em;
    cursor: pointer;
    transition: transform 0.3s ease-in-out, border-image 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
    background-color: var(--card-bg);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.box:hover, .project-card:hover {
    transform: scale(1.02);
    border-image: var(--gradient) 1;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.15);
}

.box img, .project-card img {
    width: 100%;
    max-height: 200px;
    object-fit: cover;
    border-radius: 0.3em;
}

.box h1, .project-card h3 {
    font-size: 1.2em;
    font-weight: 500;
    color: var(--text-color);
}

.box p, .project-card p {
    font-size: 0.9em;
    line-height: 1.6;
    color: var(--text-color);
    opacity: 0.9;
}

.view-site {
    color: #001b60;
    font-size: 0.9em;
    display: inline-flex;
    align-items: center;
    gap: 0.3em;
    transition: opacity 0.3s ease;
}

body.dark-mode .view-site {
    color: #FFFFFF;
}

.view-site i {
    background: var(--gradient);
    -webkit-background-clip: text;
    color: transparent;
}

.view-site:hover {
    opacity: 0.8;
}

#projects.projects-page .projects-container {
    display: flex;
    flex-direction: column;
    gap: 2em;
    padding: 1em;
    align-items: center;
}

#projects.projects-page .project-card {
    width: 100%;
    max-width: 800px;
}

#projects.projects-page .project-card img {
    max-width: 800px;
    max-height: 400px;
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 0.3em;
}

#projects.projects-page .project-description {
    font-size: 0.9em;
    line-height: 1.6;
    color: var(--text-color);
    opacity: 0.9;
    margin-bottom: 1em; 
}

.see-more {
    color: #001b60;
    font-size: 0.9em;
    display: inline-flex;
    align-items: center;
    gap: 0.3em;
    transition: opacity 0.3s ease;
}

body.dark-mode .see-more {
    color: #FFFFFF;
}

.see-more i {
    background: var(--gradient);
    -webkit-background-clip: text;
    color: transparent;
}

.see-more:hover {
    opacity: 0.8;
}

/* Testimonials Section */
#testimonials {
    background-color: var(--background);
    padding: 3em 5%;
}

.testimonials-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5em;
    padding: 1em;
}

.testimonial-card {
    background-color: var(--card-bg);
    border-radius: 12px;
    padding: 1.5em;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    gap: 1em;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.15);
}

.testimonial-card p {
    font-size: 0.9em;
    line-height: 1.6;
    color: var(--text-color);
    opacity: 0.9;
}

.testimonial-author {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1em;
}

.author-info p {
    font-size: 0.8em;
    color: #666;
    margin-top: 0.2em;
}

.company-logo {
    max-width: 60px;
    height: auto;
    opacity: 0.8;
}

/* FAQ Section */
#faq {
    background-color: var(--background);
    padding: 2em 5% 2em 5%;
    margin-top: 3em;
    margin-bottom: 3em;
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1.5em;
}

.faq-intro {
    font-size: 1em;
    line-height: 1.6;
    text-align: center;
    margin-bottom: 1em;
}

.faq-item {
    background-color: var(--card-bg);
    border-radius: 8px;
    overflow: hidden;
    transition: box-shadow 0.3s ease;
}

.faq-item:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1em 1.5em;
    cursor: pointer;
    background-color: var(--card-bg);
}

.faq-question h3 {
    font-size: 1em;
    font-weight: 500;
    color: var(--text-color);
}

.faq-question i {
    font-size: 1.2em;
    color: var(--primary-color);
    transition: transform 0.3s ease;
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    padding: 0 1.5em;
}

.faq-item.active .faq-answer {
    max-height: 200px;
    padding: 1em 1.5em;
}

.faq-answer p {
    font-size: 0.9em;
    line-height: 1.6;
    color: var(--text-color);
    opacity: 0.9;
}

.home-page #faq {
    padding: 1.5em 5%;
    margin-top: 1.5em;
    margin-bottom: 1.5em;
}

.home-page .faq-container {
    gap: 1em;
}

/* Blog Section */
#blog {
    background-color: var(--background);
    padding: 2em 5% 2em 5%;
    margin-top: 3em;
    margin-bottom: 3em;
}

.blog-link {
    display: block;
    border: 2px solid #313131;
    border-radius: 12px;
    padding: 1.5em;
    background-color: var(--card-bg);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease-in-out, border-image 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
    text-decoration: none;
    color: inherit;
}

.blog-link:hover {
    transform: scale(1.02);
    border-image: var(--gradient) 1;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.15);
}

.blog-link img {
    width: 100%;
    max-height: 200px;
    object-fit: cover;
    border-radius: 0.3em;
}

.home-page #blog {
    padding: 1.5em 5%;
    margin-top: 1.5em;
    margin-bottom: 1.5em;
}

.home-page .projects-container {
    gap: 1em;
}

.home-page .blog-link {
    padding: 1em;
}


/* AI Chatbot Section */
#ai-chatbot {
    background-color: var(--background);
    padding: 1.5em 5%;
    margin-top: 1.5em;
    margin-bottom: 1.5em;
}

#ai-chatbot .chatbot-container {
    max-width: 1000px;
    margin: 0 auto;
    background: var(--card-bg);
    border-radius: 15px;
    border: 2px solid transparent;
    border-image: var(--gradient) 1;
    padding: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

#ai-chatbot .chatbot-messages {
    max-height: 400px;
    overflow-y: auto;
    margin-bottom: 15px;
    padding: 10px;
    border-radius: 10px;
    background: #fff;
}

body.dark-mode #ai-chatbot .chatbot-messages {
    background: #333333;
}

#ai-chatbot .message {
    margin: 10px 0;
    padding: 10px 15px;
    border-radius: 15px;
    max-width: 100%;
    line-height: 1.4;
    font-size: 0.9rem;
    animation: messageFadeIn 0.3s ease-out;
    position: relative; /* For absolute positioning of copy-btn */
}

#ai-chatbot .bot-message {
    background: linear-gradient(to right, #001b60, #01031d);
    color: #fff;
    margin-right: auto;
    border-bottom-left-radius: 5px;
}

body.dark-mode #ai-chatbot .bot-message {
    background: linear-gradient(to right, #ffffff, #d3d3d3);
    color: #000000;
}

#ai-chatbot .user-message {
    background: #e0e0e0;
    color: #333;
    margin-left: auto;
    border-bottom-right-radius: 5px;
}

body.dark-mode #ai-chatbot .user-message {
    background: #4A5568;
    color: #FFFFFF;
}

#ai-chatbot .response-content {
    margin: 0;
    padding: 0;
}

#ai-chatbot .response-content p {
    margin: 0.5em 0;
    padding: 0;
}

#ai-chatbot .response-content ul,
#ai-chatbot .response-content ol {
    margin: 0.5em 0;
    padding-left: 20px;
}

#ai-chatbot .response-content li {
    margin: 0.3em 0;
    padding-left: 5px;
}

body.dark-mode #ai-chatbot .response-content li {
    color: #000000;
}

#ai-chatbot .response-content a {
    color: #4ecdc4; 
    text-decoration: underline;
}

body.dark-mode #ai-chatbot .response-content a {
    color: #4ecdc4; 
}

#ai-chatbot .response-content a:hover {
    color: #45a29e; 
    text-decoration: none;
}

body.dark-mode #ai-chatbot .response-content a:hover {
    color: #45a29e;
}

#ai-chatbot .typing {
    display: flex;
    align-items: center;
    background: linear-gradient(to right, #001b60, #01031d);
    color: #fff;
    padding: 5px 15px;
    margin-right: auto;
    border-bottom-left-radius: 5px;
}

body.dark-mode #ai-chatbot .typing {
    background: linear-gradient(to right, #ffffff, #d3d3d3);
    color: #000000;
}

#ai-chatbot .typing-dot {
    display: inline-block;
    width: 6px;
    height: 6px;
    background: #fff;
    border-radius: 50%;
    margin: 0 2px;
    animation: bounce 0.6s infinite alternate;
}

body.dark-mode #ai-chatbot .typing-dot {
    background: #000000;
}

#ai-chatbot .typing-dot:nth-child(2) {
    animation-delay: 0.2s;
}

#ai-chatbot .typing-dot:nth-child(3) {
    animation-delay: 0.4s;
}

#ai-chatbot .chatbot-input {
    display: flex;
    gap: 10px;
}

#ai-chatbot .chatbot-input input {
    flex: 1;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 25px;
    font-size: 0.9rem;
    outline: none;
    transition: border-color 0.3s;
    background: #fff;
}

body.dark-mode #ai-chatbot .chatbot-input input {
    background: #333333;
    border: 1px solid #4A5568;
    color: #FFFFFF;
}

#ai-chatbot .chatbot-input input:focus {
    border: 1px solid var(--primary-color);
}

body.dark-mode #ai-chatbot .chatbot-input input:focus {
    border: 1px solid #FFFFFF;
}

#ai-chatbot .chatbot-send {
    padding: 12px 20px;
    background: linear-gradient(to right, #001b60, #01031d);
    color: #fff;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    animation: gradientGlow 2s ease-in-out infinite;
}

body.dark-mode #ai-chatbot .chatbot-send {
    background: linear-gradient(to right, #ffffff, #d3d3d3);
    color: #000000;
    border: 1px solid #FFFFFF;
}

#ai-chatbot .chatbot-send:hover {
    transform: scale(1.05);
    box-shadow: 0 2px 8px rgba(0, 123, 255, 0.3);
}

body.dark-mode #ai-chatbot .chatbot-send:hover {
    background: linear-gradient(to right, #d3d3d3, #ffffff);
    box-shadow: 0 2px 8px rgba(255, 255, 255, 0.3);
}

#ai-chatbot .chatbot-send:focus {
    outline: 3px solid var(--primary-color);
    outline-offset: 2px;
}

body.dark-mode #ai-chatbot .chatbot-send:focus {
    outline: 3px solid #FFFFFF;
}

/* Copy Button Styles */
.copy-btn {
    background: none;
    border: none;
    cursor: pointer;
    color: #fff;
    font-size: 1rem;
    position: absolute;
    bottom: 5px;
    right: 5px;
    transition: transform 0.2s ease;
}

body.dark-mode .copy-btn {
    color: #000000;
}

.copy-btn:hover {
    transform: scale(1.1);
}

.copy-btn i.bx-check {
    color: #698a88;
}

body.dark-mode .copy-btn i.bx-check {
    color: #ffffff;
}

/* Suggestions Container */
.suggestions-container {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding: 0.5rem;
    margin-top: 1rem;
    justify-content: center;
}

.suggestion-btn {
    background: linear-gradient(to right, #001b60, #01031d);
    color: #fff;
    border: none;
    border-radius: 20px;
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

body.dark-mode .suggestion-btn {
    background: linear-gradient(to right, #ffffff, #d3d3d3);
    color: #000000;
}

.suggestion-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

body.dark-mode .suggestion-btn:hover {
    background: linear-gradient(to right, #d3d3d3, #ffffff);
    box-shadow: 0 4px 8px rgba(255, 255, 255, 0.3);
}

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

.suggestion-btn a {
    color: #fff;
    text-decoration: none;
}

body.dark-mode .suggestion-btn a {
    color: #000000;
}

.suggestion-btn a:hover {
    text-decoration: underline;
}

#crypto-news .box {
    min-height: 320px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
}

#crypto-news .box h1 {
    font-size: 1rem;
    margin: 10px 0;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    color: var(--text-color) !important;
}

#crypto-news .box h1 span {
    color: var(--text-color) !important;
    background: none !important;
    -webkit-background-clip: initial !important;
}

#crypto-news .box img {
    width: 100%;
    max-height: 200px;
    object-fit: cover;
    margin: 0 auto 10px auto;
    display: block;
    opacity: 1 !important;
}

#crypto-news .view-site {
    margin-top: auto;
    color: var(--text-color) !important;
    background: none !important;
    -webkit-background-clip: initial !important;
    font-size: 0.9em;
    display: inline-flex;
    align-items: center;
    gap: 0.3em;
}

#crypto-news .projects-header {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

#crypto-news .projects-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5em;
    padding: 1em;
}

#crypto-news .refresh-container {
    margin-top: 10px;
}

#crypto-news .refresh-link {
    font-size: 0.9rem;
    text-decoration: none;
    background: linear-gradient(to right, #001b60, #01031d);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    transition: opacity 0.3s;
}

#crypto-news .refresh-link:hover {
    opacity: 0.8;
}

body.dark-mode #crypto-news .refresh-link {
    background: linear-gradient(to right, #ffffff, #d3d3d3);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* New Rules */
#crypto-news .blog-link {
    display: block;
    text-decoration: none;
    min-height: 320px; 
    box-sizing: border-box;
    border: 2px solid #313131; 
    border-radius: 12px;
    padding: 1em;
    background-color: var(--card-bg);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease-in-out;
    opacity: 1 !important; 
}

#crypto-news .blog-link:hover {
    transform: scale(1.02);
}

#crypto-news .loading-indicator {
    text-align: center;
    padding: 20px;
    font-size: 1.2rem;
    color: #666;
    grid-column: 1 / -1; 
}

#crypto-news-container:not(:empty) .loading-indicator {
    display: block;
}

/* Crypto Charts Section */
#crypto-charts .box {
    padding: 0;
    max-width: 100%;
    overflow: hidden;
}

#crypto-charts .box h1 {
    text-align: center;
}

#crypto-charts .tradingview-widget-container {
    width: 100%;
    max-width: 1200px;
    height: 700px;
    padding: 10px;
    margin: 0 auto;
}

/* Contact Section */
#contact {
    background-color: var(--second-background);
    padding: 2em 5% 2em 5%;
    position: relative;
    z-index: 1;
}

.contact-intro {
    font-size: clamp(1em, 2.5vw, 1.125em);
    font-weight: 200;
    opacity: 0.85;
    max-width: 700px;
    margin: 0 auto 1.5em;
    color: var(--text-color);
    line-height: 1.6;
    text-align: center;
}

form {
    display: flex;
    flex-direction: column;
    gap: 2em;
    align-items: center;
    min-width: 300px;
    max-width: 600px;
    margin: 0 auto;
    padding: 2.5em;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(20px);
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1), 0 8px 32px rgba(0, 27, 96, 0.05);
    animation: slideInUp 0.8s ease-out, glowPulse 3s ease-in-out infinite;
    position: relative;
    overflow: hidden;
}

form::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(0, 27, 96, 0.03), transparent);
    animation: backgroundShift 6s ease-in-out infinite;
    pointer-events: none;
}

body.dark-mode form {
    background: rgba(42, 42, 42, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.input-box {
    display: flex;
    flex-direction: column;
    gap: 0.8em;
    width: 100%;
    position: relative;
    animation: fadeIn 0.6s ease-out;
}

.input-box label {
    font-size: 0.9em;
    font-weight: 500;
    color: var(--text-color);
    margin-bottom: 0.3em;
    transition: color 0.3s ease;
}

form input, form textarea, #ai-chatbot .chatbot-input input {
    font-size: 1em;
    padding: 1.2em 1.8em;
    border: 2px solid rgba(0, 27, 96, 0.1);
    border-radius: 16px;
    outline: none;
    resize: vertical;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    touch-action: auto;
    -webkit-user-select: text;
    user-select: text;
    -webkit-appearance: none;
    appearance: none;
    box-sizing: border-box;
    width: 100%;
    z-index: 10;
    pointer-events: auto;
    position: relative;
    font-family: 'Poppins', sans-serif;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.6);
    font-weight: 400;
    letter-spacing: 0.3px;
}

form input::placeholder, form textarea::placeholder {
    color: rgba(0, 0, 0, 0.5);
    transition: color 0.3s ease;
}
input, textarea {
    transition: border-color 0.2s ease, background-color 0.2s ease;
}

body.dark-mode form input, body.dark-mode form textarea, body.dark-mode #ai-chatbot .chatbot-input input {
    background: rgba(74, 85, 104, 0.9);
    color: #FFFFFF;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

body.dark-mode form input::placeholder, body.dark-mode form textarea::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

form input:focus, form textarea:focus, #ai-chatbot .chatbot-input input:focus {
    background: rgba(255, 255, 255, 1);
    border: 2px solid var(--primary-color);
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 12px 35px rgba(0, 27, 96, 0.25), 0 0 0 6px rgba(0, 27, 96, 0.08), 0 0 20px rgba(0, 27, 96, 0.15);
    z-index: 10;
    animation: magneticHover 0.6s ease-out;
}

form input:focus::placeholder, form textarea:focus::placeholder {
    color: rgba(0, 0, 0, 0.3);
    transform: translateY(-2px);
}

body.dark-mode form input:focus, body.dark-mode form textarea:focus, body.dark-mode #ai-chatbot .chatbot-input input:focus {
    background: rgba(90, 106, 122, 1);
    border: 2px solid #FFFFFF;
    box-shadow: 0 8px 25px rgba(255, 255, 255, 0.2), 0 0 0 4px rgba(255, 255, 255, 0.1);
}

form input:hover, form textarea:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12), 0 4px 12px rgba(0, 27, 96, 0.1);
    border-color: rgba(0, 27, 96, 0.2);
    background: rgba(255, 255, 255, 0.98);
}

form textarea {
    min-height: 120px;
    resize: vertical;
}

/* Enhanced Input Animation */
.input-box:nth-child(1) {
    animation-delay: 0.1s;
}

.input-box:nth-child(2) {
    animation-delay: 0.2s;
}

.input-box:nth-child(3) {
    animation-delay: 0.3s;
}

.input-box:nth-child(4) {
    animation-delay: 0.4s;
}

/* Scroll Reveal Animations */
.scroll-reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.scroll-reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

.scroll-reveal-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.scroll-reveal-left.revealed {
    opacity: 1;
    transform: translateX(0);
}

.scroll-reveal-right {
    opacity: 0;
    transform: translateX(50px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.scroll-reveal-right.revealed {
    opacity: 1;
    transform: translateX(0);
}

.scroll-reveal-scale {
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.scroll-reveal-scale.revealed {
    opacity: 1;
    transform: scale(1);
}

/* Enhanced Card Hover Effects */
.project-card, .skill-item, .about-card {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.project-card::before, .skill-item::before, .about-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.6s ease;
    z-index: 1;
}

.project-card:hover::before, .skill-item:hover::before, .about-card:hover::before {
    left: 100%;
}

.project-card:hover, .skill-item:hover, .about-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

body.dark-mode .project-card:hover, body.dark-mode .skill-item:hover, body.dark-mode .about-card:hover {
    box-shadow: 0 15px 35px rgba(255, 255, 255, 0.1);
}

/* Parallax Effect for Sections */
.parallax-section {
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    position: relative;
}

.parallax-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    z-index: 1;
}

.parallax-content {
    position: relative;
    z-index: 2;
}

/* Smooth Scroll Behavior */
html {
    scroll-behavior: smooth;
}

/* Loading Animation for Dynamic Content */
.loading-shimmer {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmer 2s infinite;
}

body.dark-mode .loading-shimmer {
    background: linear-gradient(90deg, #333 25%, #444 50%, #333 75%);
    background-size: 200% 100%;
}

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

/* Enhanced Typography Animations */
.text-gradient-animate {
    background: linear-gradient(45deg, var(--primary-color), #0056b3, var(--primary-color));
    background-size: 200% 200%;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: gradientShift 3s ease-in-out infinite;
}

body.dark-mode .text-gradient-animate {
    background: linear-gradient(45deg, #FFFFFF, #D3D3D3, #FFFFFF);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

/* Ripple Effect */
.ripple-effect {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.6);
    transform: scale(0);
    animation: ripple 0.6s linear;
    pointer-events: none;
}

body.dark-mode .ripple-effect {
    background: rgba(0, 0, 0, 0.3);
}

@keyframes ripple {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

/* Button Loading and Success States */
.btn-loading {
    position: relative;
    color: transparent !important;
}

.btn-loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid #ffffff;
    border-top: 2px solid transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

body.dark-mode .btn-loading::after {
    border: 2px solid #01031d;
    border-top: 2px solid transparent;
}

.btn-success {
    background: #28a745 !important;
    transform: scale(1.05);
}

.btn-success::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 1.2em;
    font-weight: bold;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Enhanced Focus States */
.input-box.focused label {
    transform: translateY(-10px) scale(0.9);
    color: var(--primary-color);
}

body.dark-mode .input-box.focused label {
    color: #FFFFFF;
}

* {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Enhanced Mobile Responsiveness */
@media (max-width: 768px) {
    .scroll-reveal, .scroll-reveal-left, .scroll-reveal-right, .scroll-reveal-scale {
        transform: translateY(30px);
        animation: slideInUp 0.8s ease-out forwards;
    }
    
    .scroll-reveal-left {
        transform: translateX(-30px);
        animation: slideInFromLeft 0.8s ease-out forwards;
    }
    
    .scroll-reveal-right {
        transform: translateX(30px);
        animation: slideInFromRight 0.8s ease-out forwards;
    }
    
    .project-card:hover, .skill-item:hover, .about-card:hover {
        transform: translateY(-4px) scale(1.01);
        animation: magneticHover 0.4s ease-out;
    }
    
    form {
        padding: 1.8em;
        margin: 1em;
        border-radius: 20px;
        backdrop-filter: blur(20px);
        animation: glowPulse 4s ease-in-out infinite;
    }
    
    .btn {
        padding: 0.9em 1.8em;
        font-size: 0.95em;
        border-radius: 25px;
        animation: float 3s ease-in-out infinite;
    }
    
    .input-box input, .input-box textarea {
        padding: 1em;
        border-radius: 15px;
        transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    }
    
    .input-box input:focus, .input-box textarea:focus {
        animation: elasticScale 0.6s ease-out;
    }
}

/* Footer */
footer {
    background-color: var(--footer-bg);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 2em 5%;
    gap: 1.5em;
    margin-bottom: 0;
}

.col-left, .col-right {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1em;
}

.col-box {
    display: flex;
    align-items: center;
    gap: 0.8em;
}

.col-box i {
    font-size: 1.2em;
    color: var(--primary-color);
}

.col-right .social-icons {
    display: flex;
    gap: 1em;
}

.col-right .social-icons a {
    text-decoration: none;
}

.col-right .social-icons i {
    font-size: 1.5em;
    background: var(--gradient);
    -webkit-background-clip: text;
    color: transparent;
    transition: transform 0.3s ease;
}

.col-right .social-icons a:hover i {
    transform: scale(1.2);
}

body.dark-mode .col-right .social-icons a:hover i {
    background: var(--gradient);
    -webkit-background-clip: text;
    color: transparent;
}

footer .copyright {
    text-align: center;
    font-size: 0.875em;
    color: var(--text-color);
    opacity: 0.7;
    margin-top: 1.5em;
}

/* Marquee */
.marquee-container {
    margin-top: 10px;
    margin-bottom: 10px;
    padding: 0;
    overflow: hidden;
    width: 100%;
    position: relative;
}

.marquee {
    display: inline-block;
    white-space: nowrap;
    font-size: clamp(12px, 4vw, 16px);
    font-weight: 300;
    animation: marquee 30s linear infinite;
    padding: 0;
    border: 1px solid transparent;
    border-radius: 5px;
}

/* CTA */
.cta-container {
    text-align: center;
    margin-top: 1.5em;
    padding: 1.5em 1em;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.cta-subtext {
    font-size: clamp(1em, 2.5vw, 1.125em);
    font-weight: 200;
    opacity: 0.85;
    max-width: 700px;
    margin: 0 auto 1.5em;
    color: var(--text-color);
    line-height: 1.6;
}

body.dark-mode .cta-button {
    background: #333333;
    color: #FFFFFF;
    border: 1px solid #FFFFFF;
}

.cta-button:hover {
    transform: translateY(-2px);
}

body.dark-mode .cta-button:hover {
    background: #001b60;
}

.cta-button:focus {
    outline: 3px solid var(--primary-color);
    outline-offset: 2px;
}

body.dark-mode .cta-button:focus {
    outline: 3px solid #FFFFFF;
}

.cta-button i {
    font-size: 1.2em;
}

/* Crypto Calculator Section */
#crypto-calculator .calculator-container {
    display: flex;
    flex-direction: column;
    gap: 1.5em;
    padding: 1em;
    background: var(--card-bg);
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

#crypto-calculator .calculator-inputs {
    display: flex;
    flex-direction: column;
    gap: 1em;
}

#crypto-calculator .input-group {
    display: flex;
    flex-direction: column;
    gap: 0.5em;
    position: relative;
}

#crypto-calculator .input-group label span {
    font-size: 0.9em;
    font-weight: 500;
    background: var(--gradient);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
}

#crypto-calculator .input-group input,
#crypto-calculator .input-group select {
    padding: 0.8em;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 0.9em;
    background: #fff;
    color: var(--text-color);
    outline: none;
    transition: border-color 0.3s ease;
}

body.dark-mode #crypto-calculator .input-group input,
body.dark-mode #crypto-calculator .input-group select {
    background: #333333;
    border: 1px solid #4A5568;
    color: #FFFFFF;
}

#crypto-calculator .input-group input:focus,
#crypto-calculator .input-group select:focus {
    border-color: var(--primary-color);
}

body.dark-mode #crypto-calculator .input-group input:focus,
body.dark-mode #crypto-calculator .input-group select:focus {
    border-color: #FFFFFF;
}

#crypto-calculator .suggestions-list {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--card-bg);
    border: 1px solid #ddd;
    border-radius: 8px;
    max-height: 200px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch; 
    list-style: none;
    margin: 0;
    padding: 0;
    z-index: 1000;
    display: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

body.dark-mode #crypto-calculator .suggestions-list {
    background: #333333;
    border: 1px solid #4A5568;
}

#crypto-calculator .suggestions-list li {
    padding: 0.8em;
    font-size: 0.9em;
    color: var(--text-color);
    cursor: pointer;
    transition: background 0.2s ease;
}

#crypto-calculator .suggestions-list li:hover {
    background: #e0e0e0;
}

body.dark-mode #crypto-calculator .suggestions-list li:hover {
    background: #4A5568;
}

#crypto-calculator #calculate-btn {
    align-self: center;
    padding: 0.8em 1.5em;
    font-size: 1em;
    background: var(--gradient);
    color: #fff;
    border-radius: 25px;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5em;
    transition: transform 0.2s, box-shadow 0.2s;
    animation: gradientGlow 2s ease-in-out infinite;
}

body.dark-mode #crypto-calculator #calculate-btn {
    background: linear-gradient(to right, #ffffff, #d3d3d3);
    color: #000000;
    border: 1px solid #FFFFFF;
}

#crypto-calculator #calculate-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 2px 8px rgba(0, 123, 255, 0.3);
}

body.dark-mode #crypto-calculator #calculate-btn:hover {
    background: linear-gradient(to right, #d3d3d3, #ffffff);
    box-shadow: 0 2px 8px rgba(255, 255, 255, 0.3);
}

#crypto-calculator .calculator-result {
    text-align: center;
    font-size: 1em;
    min-height: 2em;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #e0e0e0;
    border-radius: 8px;
    padding: 0.8em;
}

#crypto-calculator .calculator-result span {
    background: var(--gradient);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
}

body.dark-mode #crypto-calculator .calculator-result {
    background: #4A5568;
}

#crypto-calculator .calculator-result.error span {
    color: #e53e3e;
    background: none;
    -webkit-background-clip: initial;
}

/* Crypto Calculator Token Details */
#crypto-calculator .token-details {
    margin-top: 1.5em;
    padding: 1em;
    background: var(--card-bg);
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    text-align: left;
}

#crypto-calculator .token-details h3 {
    font-size: 1.2em;
    font-weight: 500;
    margin-bottom: 0.8em;
}

#crypto-calculator .token-details p {
    font-size: 0.9em;
    color: var(--text-color);
    opacity: 0.9;
    margin: 0.3em 0;
}

/* Crypto Calculator Price Chart */
#crypto-calculator .price-chart {
    margin-top: 1.5em;
    padding: 1em;
    background: var(--card-bg);
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

#crypto-calculator .price-chart h3 {
    font-size: 1.2em;
    font-weight: 500;
    margin-bottom: 0.8em;
}

#crypto-calculator .price-chart canvas {
    width: 100% !important;
    height: 200px !important;
}

/* WhatsApp Button */
#crypto-calculator .whatsapp-btn {
    margin-top: 1em;
    display: inline-flex;
    align-items: center;
    gap: 0.5em;
}

/* Loading Indicator */
#crypto-calculator .loading-indicator {
    text-align: center;
    padding: 1em;
}
.promo-container {
    text-align: center;
    font-size: 1rem;
    color: #01031d;
}
.whatsapp-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border: 2px solid #25D366;
    color: #25D366;
    text-decoration: none;
    border-radius: 5px;
}
.whatsapp-btn:hover {
    background-color: #25D366;
    color: white;
}
.bx.bxl-whatsapp {
    font-size: 1.5rem;
}

.error {
    color: red;
    font-weight: bold;
}

input, textarea, button, select {
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    z-index: 100; 
    -webkit-user-select: text;
    user-select: text;
    font-size: 16px; 
    cursor: text; 
    -webkit-appearance: none; 
    appearance: none;
}

/* Ensure form and chatbot container allow touch events */
form, #ai-chatbot .chatbot-input {
    touch-action: auto;
    z-index: 100; 
    position: relative; 
}

/* Prevent overlapping elements from blocking inputs */
#ai-chatbot .chatbot-container, form {
    pointer-events: auto;
}

/* Fix focus states for iOS */
form input:focus, form textarea:focus, #ai-chatbot .chatbot-input input:focus {
    z-index: 101; 
    outline: none;
    border: 2px solid var(--primary-color);
    background: #e5e5e5;
}

body.dark-mode form input:focus, body.dark-mode form textarea:focus, body.dark-mode #ai-chatbot .chatbot-input input:focus {
    border: 2px solid #FFFFFF;
    background: #5A6A7A;
}

#crypto-charts .header {
    text-align: center;
    margin: 0 auto;
}
#crypto-tracker .tracker-container {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    padding: 1rem;
    background: var(--card-bg);
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

#crypto-tracker .tracker-inputs {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: 100%;
}

#crypto-tracker .input-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    position: relative;
    width: 100%;
}

#crypto-tracker .input-group label span {
    font-size: 0.9rem;
    font-weight: 500;
    background: var(--gradient);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
}

#crypto-tracker .input-group input,
#crypto-tracker .input-group select {
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    background: #fff;
    color: var(--text-color);
    outline: none;
    transition: border-color 0.3s ease;
    touch-action: manipulation;
    user-select: text;
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    z-index: 100;
}

body.dark-mode #crypto-tracker .input-group input,
body.dark-mode #crypto-tracker .input-group select {
    background: #333;
    border: 1px solid #4A5568;
    color: #fff;
}

#crypto-tracker .input-group input:focus,
#crypto-tracker .input-group select:focus {
    border-color: var(--primary-color);
    z-index: 101;
}

body.dark-mode #crypto-tracker .input-group input:focus,
body.dark-mode #crypto-tracker .input-group select:focus {
    border-color: #fff;
}

#crypto-tracker #track-btn {
    align-self: center;
    padding: 0.8rem 1.5rem;
    font-size: 1rem;
    background: var(--gradient);
    color: #fff;
    border-radius: 25px;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: transform 0.2s, box-shadow 0.2s;
    animation: gradientGlow 2s ease-in-out infinite;
}

body.dark-mode #crypto-tracker #track-btn {
    background: linear-gradient(to right, #fff, #d3d3d3);
    color: #000;
    border: 1px solid #fff;
}

#crypto-tracker #track-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 2px 8px rgba(0, 123, 255, 0.3);
}

body.dark-mode #crypto-tracker #track-btn:hover {
    background: linear-gradient(to right, #d3d3d3, #fff);
    box-shadow: 0 2px 8px rgba(255, 255, 255, 0.3);
}

#crypto-tracker .tracker-result {
    text-align: center;
    font-size: 1rem;
    min-height: 2rem;
    display: block; 
    background: #e0e0e0;
    border-radius: 8px;
    padding: 0.8rem;
    overflow-x: auto; 
    -webkit-overflow-scrolling: touch;
    max-width: 100%; 
    box-sizing: border-box;
}

body.dark-mode #crypto-tracker .tracker-result {
    background: #4A5568;
}

#crypto-tracker .transaction-table {
    width: 100%;
    min-width: 600px; 
    border-collapse: collapse;
    font-size: 0.9rem;
    color: var(--text-color);
    table-layout: auto; 
}

#crypto-tracker .transaction-table th,
#crypto-tracker .transaction-table td {
    padding: 0.8rem;
    border: 1px solid #ddd;
    text-align: left;
    white-space: nowrap; 
    overflow: hidden;
    text-overflow: ellipsis; 
    max-width: 150px; 
}

#crypto-tracker .transaction-table th {
    background: var(--gradient);
    color: #fff;
    position: sticky; 
    top: 0;
    z-index: 1;
}

body.dark-mode #crypto-tracker .transaction-table th {
    background: linear-gradient(to right, #fff, #d3d3d3);
    color: #000;
}

#crypto-tracker .transaction-table td a {
    color: var(--primary-color);
    text-decoration: none;
    display: inline-block;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
}

body.dark-mode #crypto-tracker .transaction-table td a {
    color: #fff;
}

#crypto-tracker .transaction-table td a:hover {
    text-decoration: underline;
}
.pips-calculator-container,
.economic-calendar-container {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    padding: 1rem;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
    color: var(--text, #333);
}

.input-group {
    display: flex;
    flex-direction: column;
}

.input-group label {
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: var(--text, #333);
}

.input-group label span {
    color: var(--primary, #06529D);
}

.input-group input,
.input-group select {
    padding: 0.75rem;
    border: 1px solid var(--border, #ddd);
    border-radius: 6px;
    font-size: 1rem;
    font-family: 'Poppins', sans-serif;
    background: var(--background, #fff);
    color: var(--text, #333);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.input-group input:focus,
.input-group select:focus {
    outline: none;
    border-color: var(--primary, #06529D);
    box-shadow: 0 0 5px rgba(6, 82, 157, 0.3);
}

/* Pips Calculator Styles */
.pips-calculator-container {
    display: flex;
    flex-direction: column;
    gap: 1.5em;
    padding: 1em;
    background: var(--card-bg);
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    font-family: 'Poppins', sans-serif;
    color: var(--text-color);
    animation: mobileFadeIn 0.5s ease-out forwards;
}

.pips-calculator-container .pips-calculator-inputs {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1em;
    margin-bottom: 1em;
}

.pips-calculator-container .input-group label span {
    font-size: 0.9em;
    font-weight: 500;
    background: var(--gradient);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
}

.pips-calculator-container .input-group input,
.pips-calculator-container .input-group select {
    padding: 0.8em;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 0.9em;
    background: #fff;
    color: var(--text-color);
    outline: none;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    touch-action: manipulation;
    -webkit-user-select: text;
    user-select: text;
    -webkit-appearance: none;
    appearance: none;
}

body.dark-mode .pips-calculator-container .input-group input,
body.dark-mode .pips-calculator-container .input-group select {
    background: #333333;
    border: 1px solid #4A5568;
    color: #FFFFFF;
}

.pips-calculator-container .input-group input:focus,
.pips-calculator-container .input-group select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 5px rgba(0, 27, 96, 0.3);
}

body.dark-mode .pips-calculator-container .input-group input:focus,
body.dark-mode .pips-calculator-container .input-group select:focus {
    border-color: #FFFFFF;
    box-shadow: 0 0 5px rgba(255, 255, 255, 0.3);
}

.pips-calculator-container .btn {
    align-self: center;
    padding: 0.8em 1.5em;
    font-size: 1em;
    font-weight: 300;
    background: var(--gradient);
    color: #fff;
    border-radius: 25px;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5em;
    transition: transform 0.2s, box-shadow 0.2s;
    animation: gradientGlow 2s ease-in-out infinite;
}

body.dark-mode .pips-calculator-container .btn {
    background: linear-gradient(to right, #ffffff, #d3d3d3);
    color: #000000;
    border: 1px solid #FFFFFF;
}

.pips-calculator-container .btn:hover {
    transform: scale(1.05);
    box-shadow: 0 2px 8px rgba(0, 123, 255, 0.3);
    animation: buttonBounce 0.4s ease-out;
}

body.dark-mode .pips-calculator-container .btn:hover {
    background: linear-gradient(to right, #d3d3d3, #ffffff);
    box-shadow: 0 2px 8px rgba(255, 255, 255, 0.3);
}

.pips-calculator-container .btn:focus {
    outline: 3px solid var(--primary-color);
    outline-offset: 2px;
}

body.dark-mode .pips-calculator-container .btn:focus {
    outline: 3px solid #FFFFFF;
}

.pips-result {
    margin-top: 1em;
    padding: 0.8em;
    border-radius: 8px;
    background: #e0e0e0;
    color: var(--text-color);
    font-size: 0.9em;
    text-align: center;
    min-height: 2em;
    display: flex;
    align-items: center;
    justify-content: center;
}

body.dark-mode .pips-result {
    background: #4A5568;
    color: #FFFFFF;
}

.pips-result.error {
    background: #fee2e2;
    color: #e53e3e;
}

body.dark-mode .pips-result.error {
    background: #7f1d1d;
    color: #f87171;
}

.pips-result span {
    display: block;
    margin-bottom: 0.5em;
    background: var(--gradient);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
}

body.dark-mode .pips-result span {
    background: linear-gradient(to right, #ffffff, #d3d3d3);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
}

.pips-result.error span {
    color: #e53e3e;
    background: none;
    -webkit-background-clip: initial;
}

body.dark-mode .pips-result.error span {
    color: #f87171;
    background: none;
    -webkit-background-clip: initial;
}
/* QR Code Section */
.qr-code-section {
    padding: 2em 5%;
    text-align: center;
    background-color: var(--background);
}

.qr-header {
    font-size: clamp(1.5em, 5vw, 2em);
    font-weight: 500;
    margin-bottom: 1em;
    background: var(--gradient);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
}

.qr-container {
    display: flex;
    justify-content: center;
    gap: 2em;
    flex-wrap: wrap;
    cursor: pointer;
}

.qr-box {
    background-color: var(--card-bg);
    border-radius: 12px;
    padding: 1.5em;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    max-width: 200px;
    text-align: center;
}

.qr-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.15);
}

.qr-image {
    width: 100%;
    max-width: 150px;
    height: auto;
    border-radius: 8px;
}

.qr-text {
    font-size: 0.9em;
    color: var(--text-color);
    margin-top: 0.5em;
    opacity: 0.9;
}
/* New Badge Styling */
.new-badge {
    background: var(--gradient);
    color: white;
    font-size: 0.6em;
    font-weight: 500;
    padding: 0.2em 0.5em;
    border-radius: 10px;
    margin-left: 0.5em;
    vertical-align: middle;
    display: inline-block;
    animation: pulse 1.5s ease-in-out infinite;
}

body.dark-mode .new-badge {
    background: linear-gradient(to right, #FFFFFF, #D3D3D3);
    color: #01031d;
}
/* Scroll Reveal Animations for Home and About Sections */
#home .info-box h1,
#home .info-box h3,
#home .info-box p,
#about .about-info p {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

#home .info-box h1.visible,
#home .info-box h3.visible,
#home .info-box p.visible,
#about .about-info p.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered delays for smooth effect */
#home .info-box h1 {
    transition-delay: 0.1s;
}

#home .info-box h3 {
    transition-delay: 0.3s;
}

#home .info-box p {
    transition-delay: 0.5s;
}

#about .about-info p:nth-child(1) {
    transition-delay: 0.1s;
}

#about .about-info p:nth-child(2) {
    transition-delay: 0.3s;
}

#about .about-info p:nth-child(3) {
    transition-delay: 0.5s;
}

#about .about-info p:nth-child(4) {
    transition-delay: 0.7s;
}

/* Newsletter Form Styles */
.newsletter-container {
    text-align: center;
    padding: 20px 0;
    max-width: 600px;
    margin: 0 auto;
}

.newsletter-heading {
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.newsletter-heading span {
    background: linear-gradient(to right, #001b60, #01031d);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

body.dark-mode .newsletter-heading span {
    background: linear-gradient(to right, #e2e8f0, #a0aec0); 
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.newsletter-subtext {
    font-size: 1rem;
    color: var(--text-color);
    margin-bottom: 20px;
    opacity: 0.8;
}

.col-box span {
    color: var(--text-color);
}

.col-box i {
    font-size: 1.2em;
    color: var(--primary-color);
}

body.dark-mode .col-box i {
    color: #a0aec0;
}

.col-right .social-icons i {
    font-size: 1.5em;
    background: linear-gradient(to right, #001b60, #01031d);
    -webkit-background-clip: text;
    color: transparent;
}

body.dark-mode .col-right .social-icons i {
    background: linear-gradient(to right, #e2e8f0, #a0aec0);
    -webkit-background-clip: text;
    color: transparent;
}

footer .copyright {
    text-align: center;
    font-size: 0.875em;
    color: var(--text-color);
    opacity: 0.7;
    margin-top: 1.5em;
}

/* Ensure input and button contrast */
#newsletter-form .input-box input {
    background: #ffffff;
    color: #000000;
}

body.dark-mode #newsletter-form .input-box input {
    background: #4a5568; 
    color: #ffffff;
}

#newsletter-form .btn {
    background: var(--gradient);
    color: #ffffff;
}

body.dark-mode #newsletter-form .btn {
    background: linear-gradient(to right, #ffffff, #d3d3d3);
    color: #000000;
}

/* Newsletter Feedback Container */
.newsletter-feedback {
    margin-top: 10px;
    text-align: center;
    min-height: 30px;
}

/* Feedback Content */
.feedback-content {
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 0.9em;
}

/* Hidden State */
.newsletter-feedback .hidden {
    display: none !important;
}

/* Loader Animation */
.loader {
    width: 50px;
    height: 50px;
    border: 4px solid #cccccc;
    border-top: 4px solid var(--primary-color, #001b60);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

body.dark-mode .loader {
    border: 4px solid #666666;
    border-top: 4px solid #a0aec0;
}

/* Success Message */
.newsletter-feedback .success-message {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #15522e;
    opacity: 0;
    transform: scale(0.8);
}

.newsletter-feedback .success-message:not(.hidden) {
    display: flex !important;
    animation: popIn 0.5s ease-out forwards;
    opacity: 1;
    transform: scale(1);
}

.newsletter-feedback .success-message i {
    font-size: 2em;
}

/* Error Message */
.newsletter-feedback .error-message {
    color: #e74c3c;
    opacity: 0;
}

.newsletter-feedback .error-message:not(.hidden) {
    display: block !important;
    animation: fadeIn 0.5s ease-out forwards;
    opacity: 1;
}

/* Disabled Button */
#newsletter-form .btn:disabled {
    background: #999999;
    color: #ffffff;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

body.dark-mode #newsletter-form .btn:disabled {
    background: #666666;
    color: #cccccc;
}
.toast {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #4BB543; 
    color: #fff;
    padding: 12px 20px;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    font-size: 14px;
    z-index: 9999;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.toast.show {
    opacity: 1;
    transform: translateY(0);
}

.toast.error {
    background-color: #e74c3c; 
}

.hidden {
    display: none !important;
}

.input-error {
    border: 2px solid red !important;
    outline: none !important;
}

.input-success {
    border: 2px solid #38a169 !important;
    background-color: #f0fff4 !important;
}

.btn-error {
    background: #e63946 !important;
    color: white !important;
    animation: shake 0.3s ease-in-out;
}

@keyframes shake {
    0% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    50% { transform: translateX(5px); }
    75% { transform: translateX(-5px); }
    100% { transform: translateX(0); }
}


/* Accessibility: Reduce Motion */
@media (prefers-reduced-motion: reduce) {
    .loader {
        animation: none;
        border: 4px solid var(--primary-color, #001b60);
    }
    body.dark-mode .loader {
        border: 4px solid #a0aec0;
    }
    .newsletter-feedback .success-message:not(.hidden),
    .newsletter-feedback .error-message:not(.hidden) {
        animation: none;
        opacity: 1;
        transform: scale(1);
        display: flex !important; /* For success-message */
    }
}


/* Filter Section */
.filter-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 2em;
    opacity: 1; 
    transform: translateY(0); 
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.filter-container.animate {
    animation: mobileFadeIn 1s ease-out forwards;
}

.filter-btn {
    background: transparent;
    border: 1.5px solid var(--primary-color);
    color: var(--text-color);
    padding: 0.6em 1.2em;
    border-radius: 25px;
    font-size: 1em;
    font-weight: 400;
    font-family: 'Poppins', sans-serif;
    cursor: pointer;
    transition: all 0.4s ease, box-shadow 0.4s ease, transform 0.3s ease;
    animation: gradientGlow 4s ease-in-out infinite; 
    outline: none;
}

body.dark-mode .filter-btn {
    border: none;
    box-shadow: inset 0 0 0 2px #FFFFFF;
    color: #FFFFFF;
    animation: darkGradientGlow 4s ease-in-out infinite; 
}

.filter-btn:hover {
    background: linear-gradient(to right, rgba(0, 27, 96, 0.2), rgba(0, 48, 135, 0.2)); /* Subtle semi-transparent gradient */
    color: var(--text-color); 
    transform: translateY(-2px);
    box-shadow: 0 2px 8px rgba(0, 27, 96, 0.2); 
    animation: buttonBounce 0.6s ease-out; 
}

body.dark-mode .filter-btn:hover {
    background: linear-gradient(to right, rgb(165, 165, 150), rgba(211, 211, 211, 0.2)); /* Subtle semi-transparent gradient */
    color: #FFFFFF; 
    box-shadow: 0 2px 8px rgb(35, 15, 147); 
    animation: buttonBounce 0.6s ease-out;
}

.filter-btn.active {
    background: linear-gradient(to right, rgba(0, 27, 96, 0.3), rgba(0, 48, 135, 0.3)); /* Subtle gradient */
    color: var(--text-color);
    box-shadow: 0 2px 8px rgba(0, 8, 96, 0.2);
    animation: pulse 3s ease-in-out infinite; 
}

body.dark-mode .filter-btn.active {
    background: linear-gradient(to right, rgba(255, 255, 255, 0.3), rgba(211, 211, 211, 0.3)); /* Subtle gradient */
    color: #FFFFFF; 
    box-shadow: 0 2px 8px rgba(255, 255, 255, 0.2);
}

.filter-btn:focus {
    outline: none;
    box-shadow: 0 0 0 3px var(--primary-color), 0 2px 8px rgba(0, 27, 96, 0.2);
}

body.dark-mode .filter-btn:focus {
    box-shadow: 0 0 0 3px #FFFFFF, 0 2px 8px rgba(255, 255, 255, 0.2);
}

/* Coming Soon Message */
.coming-soon {
    background-color: var(--card-bg);
    border-radius: 12px;
    padding: 2em;
    text-align: center;
    max-width: 600px;
    margin: 2em auto;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    opacity: 1;
    transform: translateY(0);
}

.coming-soon.animate {
    animation: mobileFadeIn 1s ease-out forwards; 
}

.coming-soon:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

.coming-soon h3 {
    font-size: 1.5em;
    font-weight: 500;
    font-family: 'Poppins', sans-serif;
    background: var(--gradient);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    margin-bottom: 0.5em;
}

.coming-soon p {
    font-size: 0.9em;
    line-height: 1.6;
    color: var(--text-color);
    font-family: 'Poppins', sans-serif;
    opacity: 0.9;
}

.image-compressor {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 1rem 0;
}
.drop-zone {
    border: 2px dashed var(--text-color);
    padding: 2rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: var(--second-bg-color);
    border-radius: 8px;
}
.drop-zone.active {
    background: var(--bg-color);
    border-color: var(--main-color);
}
.drop-zone i {
    font-size: 3rem;
    color: var(--main-color);
}
.drop-zone p {
    margin: 0.5rem 0 0;
    color: var(--text-color);
}
.file-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.file-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--text-color);
    color: var(--text-color);
}
.file-list .bx-trash {
    cursor: pointer;
    color: var(--main-color);
    font-size: 1.2rem;
}
.compression-result {
    background: var(--second-bg-color);
    padding: 1rem;
    border-radius: 8px;
    margin-top: 1rem;
    color: var(--text-color);
}
.download-btn {
    margin-top: 0.5rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}
.compressor-result .error {
    color: red;
    margin: 0.5rem 0;
}
.centered-link {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 10vh; /* Full viewport height */
    margin: 0;
    text-align: center;
}


/* Welcome Page */
.welcome-page {
    background-color: transparent;
    color: var(--text-color);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow-x: hidden;
}

/* Initially hide all content except popup */
.welcome-header,
.scroll-progress,
.welcome-content,
.audio-controls {
    display: none;
}

/* Show content after form submission */
.welcome-page.content-visible .welcome-header,
.welcome-page.content-visible .scroll-progress,
.welcome-page.content-visible .welcome-content,
.welcome-page.content-visible .audio-controls {
    display: block;
}

.welcome-header {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 0.6em 5%; 
    display: flex;
    justify-content: center;
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-radius: 30px;
    border: 0.8px solid transparent;
    transition: transform 0.3s ease;
}

.welcome-header.hidden {
    transform: translateY(-100%);
}

body.dark-mode .welcome-header {
    background-color: rgba(42, 42, 42, 0.9);
}

.welcome-header .logo {
    font-size: clamp(1.3em, 4.5vw, 1.8em); 
    font-weight: 400;
    background: var(--gradient);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    animation: logoPulse 2s ease-in-out infinite;
}

.welcome-header .logo:hover {
    animation: logoSpin 0.6s ease forwards;
}

.welcome-border {
    position: relative;
    display: inline-block;
    border-radius: 30px;
    padding: 4px; 
    z-index: 0;
}
.welcome-content {
    border-radius: 24px;
    background: transparent;
    padding: 1.5em 5%;
    max-width: 700px;
    margin: 0 auto;
    color: #000;
}

.welcome-border::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    border-radius: 30px;

    background: linear-gradient(
        135deg,
        red,
        orange,
        yellow,
        lime,
        cyan,
        blue,
        violet,
        red
    );
    background-size: 400% 400%;
    animation: rotateBorder 6s linear infinite;

    padding: 4px;
    mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    -webkit-mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    mask-composite: exclude;
    -webkit-mask-composite: destination-out;
}

body.dark-mode .welcome-content {
    background-color: rgba(45, 45, 45, 0.85);
}

.welcome-content .greeting {
    font-size: clamp(1em, 4.5vw, 1.3em); 
    color: var(--text-color);
    margin-bottom: 0.4em;
}

.welcome-content .greeting .user-name {
    font-weight: 500;
    background: var(--gradient);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
}

body.dark-mode .welcome-content .greeting .user-name {
    background: linear-gradient(to right, #FFFFFF, #D3D3D3);
}

.welcome-content h1 {
    font-size: clamp(1.5em, 5.5vw, 2.1em); 
    font-weight: 500;
    background: var(--gradient);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    margin-bottom: 0.4em;
}

.welcome-content p {
    font-size: clamp(0.9em, 3.5vw, 1em); 
    color: var(--text-color);
    opacity: 0.8;
    margin-bottom: 1.2em; 
}

.welcome-content .cta-button {
    background: var(--gradient);
    color: #ffffff;
    padding: 0.6em 1.2em; 
    font-size: 0.9em; 
    border-radius: 25px; 
    display: inline-flex;
    align-items: center;
    gap: 0.4em; 
    animation: gradientGlow 2s ease-in-out infinite;
}

body.dark-mode .welcome-content .cta-button {
    background: linear-gradient(to right, #FFFFFF, #D3D3D3);
    color: #01031d;
}

.welcome-content .cta-button:hover {
    background: linear-gradient(135deg, #0056b3, var(--primary-color));
    color: white;
    box-shadow: 0 8px 25px rgba(0, 27, 96, 0.4), 0 0 0 3px rgba(0, 27, 96, 0.1);
    transform: translateY(-3px) scale(1.05);
    animation: magneticHover 0.6s ease-out, elasticScale 0.8s ease-out;
}

body.dark-mode .welcome-content .cta-button:hover {
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.3);
}

/* Scroll Progress Bar */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background-color: rgba(0, 0, 0, 0.1);
    z-index: 1100;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.progress-fill {
    width: 0;
    height: 100%;
    background: var(--gradient);
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 0 10px rgba(0, 27, 96, 0.5);
    position: relative;
}

.progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 20px;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.6));
    animation: progressGlow 2s ease-in-out infinite;
}

body.dark-mode .progress-fill {
    background: linear-gradient(to right, #FFFFFF, #D3D3D3);
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

@keyframes progressGlow {
    0%, 100% { opacity: 0; }
    50% { opacity: 1; }
}

#user-email-display {
    font-weight: 500;
    background: var(--gradient);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
}

body.dark-mode #user-email-display {
    background: linear-gradient(to right, #FFFFFF, #D3D3D3);
}

.personalize-form {
    display: flex;
    flex-direction: column;
    gap: 1em;
    align-items: center;
    margin-top: 1.2em; 
}

.personalize-form .input-box {
    width: 100%;
    max-width: 280px;
    margin-bottom: 0.4em; 
}

.personalize-form .input-box label {
    font-size: 0.85em; 
    font-weight: 500;
    color: #ffffff;
    margin-bottom: 0.3em; 
}

body.dark-mode .personalize-form .input-box label {
    color: #01031d;
}

.personalize-form .required {
    color: #e53e3e;
    font-size: 0.75em; 
}

.personalize-form input {
    width: 100%;
    padding: 0.5em; 
    border-radius: 6px; 
    border: 1px solid #ddd;
    background: #e0e0e0;
    color: var(--text-color);
    font-size: 0.85em; 
    transition: border-color 0.3s ease, background 0.3s ease;
}

body.dark-mode .personalize-form input {
    background: #4A5568;
    color: #FFFFFF;
    border: 1px solid #4A5568;
}

.personalize-form input:focus {
    border-color: var(--primary-color);
    background: #e5e5e5;
}

body.dark-mode .personalize-form input:focus {
    border-color: #FFFFFF;
    background: #5A6A7A;
}

.personalize-btn {
    padding: clamp(0.8em, 2vw, 1em) clamp(1.5em, 3vw, 2em);
    border-radius: 15px;
    border: none;
    font-size: clamp(0.9em, 3vw, 1em);
    font-weight: 500;
    letter-spacing: 1px;
    background: linear-gradient(135deg, var(--primary-color), #001b60);
    color: white;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    outline: none;
    touch-action: manipulation;
    box-shadow: 0 4px 15px rgba(0, 27, 96, 0.2);
    backdrop-filter: blur(10px);
    overflow: hidden;
    font-family: 'Poppins', sans-serif;
    animation: glowPulse 3s ease-in-out infinite;
}

body.dark-mode .personalize-btn {
    background: linear-gradient(to right, #FFFFFF, #D3D3D3);
    color: #01031d;
    border: 1px solid #FFFFFF;
}

.personalize-btn:disabled {
    background: #999999;
    cursor: not-allowed;
    animation: none;
}

body.dark-mode .personalize-btn:disabled {
    background: #666666;
    color: #cccccc;
}

.personalize-btn .loader {
    width: 14px; 
    height: 14px;
    border: 2px solid #ffffff;
    border-top: 2px solid transparent;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

body.dark-mode .personalize-btn .loader {
    border: 2px solid #01031d;
    border-top: 2px solid transparent;
}

/* Audio Controls */
.audio-controls {
    position: fixed;
    bottom: 15px;
    right: 15px;
    z-index: 1000;
}

.audio-btn {
    padding: 0.5em 0.8em; 
    font-size: 0.85em; 
    background: var(--gradient);
    color: #ffffff;
    border-radius: 20px; 
    display: flex;
    align-items: center;
    gap: 0.4em; 
    animation: gradientGlow 2s ease-in-out infinite;
}

body.dark-mode .audio-btn {
    background: linear-gradient(to right, #FFFFFF, #D3D3D3);
    color: #01031d;
}

.audio-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 27, 96, 0.3);
}

body.dark-mode .audio-btn:hover {
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.3);
}

.audio-btn i {
    font-size: 1em; 
}

.video-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
    filter: brightness(0.8);
}

.pdf-converter {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 1rem 0;
}

#pdf-drop-zone {
    border: 2px dashed var(--text-color);
    padding: 2rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: var(--second-background);
    border-radius: 8px;
}

#pdf-drop-zone.active {
    background: var(--background);
    border-color: var(--primary-color);
}

#pdf-drop-zone i {
    font-size: 3rem;
    background: var(--gradient);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
}

#pdf-drop-zone p {
    margin: 0.5rem 0 0;
    color: var(--text-color);
    font-size: 0.9em;
    opacity: 0.9;
}

#converter-result {
    width: 100%;
}

.file-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.file-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--text-color);
    color: var(--text-color);
    font-size: 0.9em;
}

.file-list .bx-trash {
    cursor: pointer;
    background: var(--gradient);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

.file-list .bx-trash:hover {
    transform: scale(1.1);
}

.conversion-result {
    background: var(--second-background);
    padding: 1rem;
    border-radius: 8px;
    margin-top: 1rem;
    color: var(--text-color);
    font-size: 0.9em;
}

.conversion-result p {
    margin: 0.5rem 0;
    opacity: 0.9;
}

.download-btn {
    margin-top: 0.5rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--gradient);
    color: #ffffff;
    padding: 0.6em 1.2em;
    border-radius: 25px;
    font-size: 0.9em;
    font-weight: 300;
    text-decoration: none;
    transition: all 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
    animation: gradientGlow 2s ease-in-out infinite;
}

body.dark-mode .download-btn {
    background: linear-gradient(to right, #FFFFFF, #D3D3D3);
    color: #01031d;
    border: 1px solid #FFFFFF;
}

.download-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 27, 96, 0.3);
    animation: buttonBounce 0.4s ease-out;
}

body.dark-mode .download-btn:hover {
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.3);
}

#converter-result .error {
    color: #e53e3e;
    font-weight: 500;
    margin: 0.5rem 0;
}

#converter-result .loading {
    color: var(--primary-color);
    font-style: italic;
    font-size: 0.9em;
}

body.dark-mode #converter-result .error {
    color: #f87171;
}

body.dark-mode #converter-result .loading {
    color: #FFFFFF;
}

/* Page scroll icon */
.scroll-arrow {
    position: fixed;
    bottom: 20px;
    left: 20px;
    background-color: #001b60;
    color: white;
    border: none;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
    transition: opacity 0.3s, transform 0.3s;
    z-index: 1000;
}

.scroll-arrow.hidden {
    opacity: 0;
    pointer-events: none;
}

.scroll-arrow:not(.hidden) {
    opacity: 1;
}

.scroll-arrow.down {
    transform: rotate(180deg);
}

.scroll-arrow:hover {
    background-color: #001b60;
}


/* mobile / responsiveness query */
@media (min-width: 969px) {
    .menu-toggle {
        display: none;
    }

    .menu-toggle-container .mode-toggle {
        display: none;
    }

    .links .btn.nav-btn {
        display: none;
    }

    .nav-right {
        display: flex;
    }

    #home {
        gap: 2em;
    }

    .info-box {
        gap: 1em;
    }

    .btn-box {
        margin-top: 2em;
    }

    nav {
        transition: transform 0.3s ease;
    }

    .mobile-scroll, .slide-left, .slide-right, .scroll-reveal, #home .profile-img, .box, .blog-link {
        opacity: 0;
        transition: opacity 0.5s ease, transform 0.5s ease;
        -webkit-transform: translateZ(0);
        transform: translateZ(0);
    }
    
    .mobile-scroll.visible, .slide-left.visible, .slide-right.visible, .scroll-reveal.visible, #home .profile-img.visible, .box.visible, .blog-link.visible {
        opacity: 1;
        transform: translateX(0) translateZ(0);
        -webkit-transform: translateX(0) translateZ(0);
    }
    
    .slide-left {
        transform: translateX(-50px) translateZ(0);
        -webkit-transform: translateX(-50px) translateZ(0);
    }
    
    .slide-right {
        transform: translateX(50px) translateZ(0);
        -webkit-transform: translateX(50px) translateZ(0);
    }

}
@media only screen and (min-width: 969px) {
    #crypto-news .box {
    opacity: 1; 
    transform: none; 
    }
}
.mobile-scroll {
    opacity: 1; 
    transition: none; 
}
.mobile-scroll.visible {
    opacity: 1;
}


/* Media Queries for Mobile View */
@media (max-width: 968px) {
    nav {
        padding: 1em 5%;
        transition: transform 0.3s ease;
    }

    nav.hidden {
        transform: translateY(-100%);
    }

    .nav-right {
        display: none;
    }

    #crypto-charts .box h1 {
        font-size: 0.9rem;
    }

    .menu-toggle {
        display: block;
    }

    .menu-toggle-container {
        display: flex;
        align-items: center;
    }

    #menu-open, #menu-close {
        font-size: 2em;
        background: var(--gradient);
        -webkit-background-clip: text;
        color: transparent;
    }

    .links {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        padding: 1.5em;
        background: rgba(248, 250, 252, 0.95);
        backdrop-filter: blur(20px);
        display: none;
        flex-direction: column;
        align-items: center;
        transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        max-height: 80vh;
        overflow-y: auto;
        border-radius: 0 0 20px 20px;
        box-shadow: 0 8px 32px rgba(0, 27, 96, 0.1);
        animation: slideInDown 0.5s ease-out;
    }

    body.dark-mode .links {
        background-color: var(--card-bg);
    }

    .links.active {
        display: flex;
        animation: slideInDown 0.5s ease-out;
    }

    .links a {
        font-size: 1.2em;
        margin: 0.8em 0;
        padding: 0.5em 1em;
        border-radius: 10px;
        transition: all 0.3s ease;
        position: relative;
        overflow: hidden;
    }
    
    .links a:hover {
        background: rgba(0, 27, 96, 0.1);
        transform: translateX(5px);
        animation: magneticHover 0.3s ease-out;
    }

    section {
        padding: 1em 5%;
        padding-top: 4em;
        margin-top: 0.2em;
        margin-bottom: 0.2em;
    }

    #home {
        padding-top: 3em;
        margin-top: 0; 
        gap: 1.5em;
        min-height: 80vh;
        justify-content: flex-start; 
        align-items: center;
    }

    .info-box {
        padding-left: 1em;
        padding-right: 1em;
        max-width: 100%;
        gap: 0.8em; 
        align-items: center;
        margin-top: 0; 
    }

    .btn-box {
        margin-top: 1em;
        gap: 1.5em;
    }

    #home .profile-img {
        width: 50vw;
        max-width: 250px;
        margin-top: 0.5em; 
    }

    .btn-box {
        margin-top: 1em;
    }

    #about {
        padding: 1em 5%;
        padding-top: 4em;
        margin-top: 0.5em;
        margin-bottom: 0.2em;
    }

    body:not(.home-page) #about {
        padding-top: 7em;
    }

    #about .header {
        margin-top: -1.5em;
    }

    .about-container {
        gap: 0.3em;
    }

    .about-content {
        flex-direction: column;
        align-items: center;
        gap: 1em;
    }

    #about .about-info {
        align-items: center;
        gap: 0.5em;
        padding: 0 1em;
    }

    #about .about-info p {
        text-align: center;
        margin: 0 0 2em 0;
        font-size: 0.95em;
    }

    #about .about-info .cta-button {
        display: block;
        margin: 1em auto 0.5em;
        text-align: center;
    }

    #about .about-info .continue-reading {
        margin-top: 1em;
        display: flex;
        justify-content: center;
        width: 100%;
        animation: pulse 1.5s ease-in-out infinite;
    }

    .about-image {
        max-width: 280px;
    }

    #projects, #blog, #faq, #testimonials, #ai-chatbot, #crypto-news, #crypto-charts {
        padding: 1em 5%;
        padding-top: 4em;
        margin-top: 0.2em;
        margin-bottom: 0.2em;
    }

    .home-page #blog {
        padding-top: 3em;
    }

    .home-page #faq {
        padding-top: 1.5em;
        margin-bottom: 0.8em;
    }

    .content-section {
        margin-top: 40px;
        margin-bottom: 10px;
    }

    #projects.projects-page .projects-container {
        gap: 1em;
    }

    #projects.projects-page .project-card {
        padding: 0.8em;
        max-width: 100%;
    }

    #projects.projects-page .project-card img {
        max-width: 100%;
        max-height: 300px;
        width: 100%;
        height: auto;
    }

    #projects.projects-page .project-card h3 {
        font-size: 1em;
    }

    #projects.projects-page .project-description {
        font-size: 0.85em;
    }

    .projects-container {
        grid-template-columns: repeat(auto-fit, minmax(clamp(200px, 75vw, 250px), 1fr));
        gap: 1em;
        padding: 0 0.8em;
    }
    .faq-container {
        gap: 1em;
    }

    footer {
        padding: 1em 5%;
        margin-bottom: 0;
    }

    .col-left, .col-right {
        align-items: center;
        text-align: center;
        gap: 0.5em;
    }

    .col-box {
        justify-content: center;
    }

    .col-right .social-icons {
        justify-content: center;
    }

    .col-right .social-icons i {
        font-size: 1.8em;
    }

    .greeting-card {
        padding: 1em;
        width: 90%;
        max-width: 100%;
        margin: 0 0.5em;
        box-sizing: border-box;
        border-radius: 15px;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
        animation: none;
    }

    .greeting-card h2 {
        font-size: 1.3em;
    }

    .greeting-card p {
        font-size: 0.75em;
    }

    .skills {
        padding: 1em 0;
        padding-top: 2em;
        margin-bottom: 0.5em;
    }

    .skills-heading {
        margin-bottom: 1em;
    }

    .skills-content {
        flex-direction: column;
        gap: 1em;
        align-items: center;
    }

    .focus-section {
        align-items: center;
        gap: 0.5em;
    }

    .focus-section h3 {
        text-align: center;
    }

    .focus-list ul li {
        text-align: center;
    }

    .skills-progress {
        width: 100%;
        max-width: 400px;
        gap: 0.5em;
        padding: 0 1em;
    }

    .skills-progress ul li {
        margin-bottom: 0.8em;
    }

    .skills-progress ul li span {
        flex: 0 0 90px;
        text-align: left;
        padding-right: 0.5em;
    }

    .progress-bar {
        width: 100%;
        max-width: 200px;
        margin-left: 0.5em;
    }

    form {
        gap: 0.8em;
        padding: 0.2em;
    }

    .input-box {
        gap: 0.3em;
        width: 100%;
        max-width: 400px;
    }

    form input, form textarea, #ai-chatbot .chatbot-input input {
        padding: 0.5em 1em;
        font-size: 0.95em;
        touch-action: auto; 
        -webkit-user-select: text; 
        user-select: text; 
        -webkit-appearance: none; 
        appearance: none; 
        box-sizing: border-box; 
        width: 100%; 
        z-index: 10; 
    }

    form textarea {
        padding: 0.8em 1.2em;
    }

    form .btn {
        margin-top: 1em;
    }
    .mobile-scroll {
        opacity: 0;
        transition: opacity 0.5s ease, transform 0.5s ease;
        -webkit-transform: translateZ(0);
        transform: translateZ(0);
    }

    .mobile-scroll.visible {
        opacity: 1;
        transform: translateX(0) translateZ(0);
        -webkit-transform: translateX(0) translateZ(0);
    }
    .pips-calculator-container {
        padding: 0.8em;
        animation: none;
    }

    .pips-calculator-container .pips-calculator-inputs {
        grid-template-columns: 1fr;
        gap: 0.8em;
    }

    .pips-calculator-container .input-group input,
    .pips-calculator-container .input-group select {
        padding: 0.6em;
        font-size: 0.85em;
    }

    .pips-calculator-container .btn {
        padding: 0.6em 1.2em;
        font-size: 0.9em;
    }

    .pips-result {
        font-size: 0.85em;
        padding: 0.6em;
    }
    .economic-calendar-box {
        padding: 1em;
        animation: none;
    }

    .economic-calendar-container iframe {
        height: 500px;
    }

    .calendar-footer {
        font-size: 0.85em;
    }
    .filter-container {
        gap: 0.8em;
        margin-bottom: 1.5em;
    }

    .filter-btn {
        padding: 0.5em 1em;
        font-size: 0.95em;
    }

    .coming-soon {
        padding: 1.5em;
        margin: 1.5em auto;
        max-width: 90%;
    }

    .coming-soon h3 {
        font-size: 1.3em;
    }

    .coming-soon p {
        font-size: 0.85em;
    }

    .pdf-converter {
        padding: 0.5rem 0;
    }

    #pdf-drop-zone {
        padding: 1.5rem;
    }

    #pdf-drop-zone i {
        font-size: 2.5rem;
    }

    #pdf-drop-zone p {
        font-size: 0.85em;
    }

    .file-list li {
        font-size: 0.85em;
    }

    .conversion-result {
        padding: 0.8rem;
        font-size: 0.85em;
    }

    .download-btn {
        padding: 0.5em 1em;
        font-size: 0.85em;
    }

    .welcome-header {
        padding: 0.5em 5%; 
    }
    .scroll-progress {
        height: 2.5px; 
    }
    .welcome-content {
        padding: 1.2em 5%; 
        background-color: rgba(255, 255, 255, 0.9);
    }
    body.dark-mode .welcome-content {
        background-color: rgba(42, 42, 42, 0.9);
    }
    .welcome-content .greeting {
        font-size: clamp(0.95em, 4vw, 1.2em); 
    }
    .welcome-content h1 {
        font-size: clamp(1.6em, 5.5vw, 2.2em); 
    }
    .welcome-content p {
        font-size: clamp(0.85em, 3vw, 0.95em); 
    }
    .personalize-form .input-box {
        max-width: 100%;
    }
    .personalize-btn {
        font-size: 0.8em; 
        padding: 0.4em 0.8em; 
    }
    .audio-controls {
        bottom: 12px; 
        right: 12px;
    }
    .audio-btn {
        font-size: 0.8em; 
        padding: 0.4em 0.6em;
    }

}

@media (max-width: 768px) {
    #ai-chatbot {
        padding: 0.8em 5%;
        margin-top: 0.8em;
        margin-bottom: 0.8em;
    }

    #ai-chatbot .chatbot-container {
        padding: 15px;
        max-width: 100%;
    }

    #ai-chatbot .chatbot-messages {
        max-height: 300px;
        -webkit-overflow-scrolling: touch;
    }

    #ai-chatbot .message {
        font-size: 0.85rem;
        padding: 8px 12px;
    }

    #ai-chatbot .chatbot-input input {
        padding: 10px;
        touch-action: auto;
        -webkit-user-select: text;
        user-select: text;
        -webkit-appearance: none;
        appearance: none;
        box-sizing: border-box;
        width: 100%;
        z-index: 10;
    }

    #ai-chatbot .chatbot-send {
        padding: 10px 15px;
    }

    .suggestions-container {
        flex-direction: column;
        align-items: center;
    }

    .suggestion-btn {
        width: 100%;
        text-align: center;
        font-size: 0.85rem;
        padding: 0.6rem;
    }

    .copy-btn {
        font-size: 1rem;
    }

    #crypto-calculator .calculator-inputs {
        flex-direction: column;
        gap: 1em;
    }

    #crypto-calculator .input-group {
        width: 100%;
    }

    #crypto-calculator .input-group input,
    #crypto-calculator .input-group select {
        width: 100%;
        font-size: 0.85em;
        padding: 0.6em;
    }

    #crypto-calculator .suggestions-list {
        width: 100%;
    }

    #crypto-calculator #calculate-btn {
        width: auto;
        padding: 0.6em 1.2em;
    }

    #crypto-calculator .calculator-result {
        font-size: 0.9em;
        padding: 0.6em;
    }

    #crypto-calculator .token-details {
        padding: 0.8em;
    }

    #crypto-calculator .token-details h3 {
        font-size: 1.1em;
    }

    #crypto-calculator .token-details p {
        font-size: 0.85em;
    }

    #crypto-calculator .price-chart {
        padding: 0.8em;
    }

    #crypto-calculator .price-chart h3 {
        font-size: 1.1em;
    }

    #crypto-calculator .price-chart canvas {
        height: 150px !important;
    }

    #crypto-calculator .whatsapp-btn {
        font-size: 0.9em;
        padding: 0.6em 1.2em;
    }

    #crypto-news .box h1 {
        font-size: 0.9rem;
    }

    #crypto-news .box img {
        max-height: 130px;
    }

    #crypto-news .projects-container {
        grid-template-columns: 1fr;
    }

    #crypto-charts .tradingview-widget-container {
        width: 100%;
        max-width: 100%;
        height: 500px;
        min-height: 250px;
        padding: 10px;
        margin: 0 auto;
    }

    #crypto-charts .box {
        padding: 0;
    }
    input, textarea, select {
        font-size: 16px !important;
    }
    #crypto-tracker .tracker-container {
        padding: 0.8rem;
    }

    #crypto-tracker .input-group input,
    #crypto-tracker .input-group select {
        padding: 0.6rem;
        font-size: 1rem;
    }

    #crypto-tracker #track-btn {
        padding: 0.6rem 1.2rem;
        font-size: 0.9rem;
    }

    #crypto-tracker .tracker-result {
        font-size: 0.9rem;
        padding: 0.6rem;
        -webkit-overflow-scrolling: touch;
    }

    #crypto-tracker .transaction-table {
        font-size: 0.85rem;
    }

    #crypto-tracker .transaction-table th,
    #crypto-tracker .transaction-table td {
        padding: 0.6rem;
    }
    #crypto-tracker .tracker-inputs {
        flex-direction: row;
        gap: 1.5em;
    }

    #crypto-tracker .input-group {
        flex: 1;
    }
    #crypto-news {
        grid-template-columns: 1fr; 
        gap: 15px;
    }
    #crypto-news .blog-link {
        min-height: 280px;
    }
    #crypto-news .box {
        min-height: 280px;
    }
    #crypto-news .box img {
        max-height: 150px;
    }
    #crypto-news .box h1 {
        font-size: 0.9rem;
    }
    .qr-code-section {
        padding: 1em 5%;
    }

    .qr-container {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5em;
        justify-content: center;
    }

    .qr-box {
        width: 100%;
        max-width: 180px;
        padding: 1em;
        margin: 0 auto; 
    }

    .qr-image {
        max-width: 130px;
    }

    .qr-text {
        font-size: 0.85em;
    }
    .newsletter-container {
        padding: 15px;
    }

    .newsletter-heading {
        font-size: 1.5rem;
    }

    .newsletter-subtext {
        font-size: 0.9rem;
    }

    #newsletter-form {
        flex-direction: column;
        align-items: center;
    }

    #newsletter-form .input-box {
        width: 100%;
        min-width: unset;
    }
    .image-compressor {
        padding: 0.5rem 0;
    }
    .drop-zone {
        padding: 1.5rem;
    }
    .drop-zone i {
        font-size: 2.5rem;
    }

    .greeting-card {
        padding: 1.5em; 
        width: 95%;
        gap: 0.6em; 
    }
    .greeting-card h2 {
        font-size: 1.2em; 
        margin-bottom: 0.5em; 
    }
    .greeting-card p {
        font-size: 0.7em; 
        margin-bottom: 0.5em; 
    }
    .greeting-card #greeting-message {
        margin-bottom: 0.6em;
    }
    .personalize-form {
        margin-top: 1em; 
        gap: 0.8em; 
    }
    .personalize-form input {
        font-size: 0.8em; 
        padding: 0.4em; 
    }
    .personalize-btn {
        font-size: 0.75em; 
        padding: 0.3em 0.7em;
        margin-top: 0.5em; 
    }
    .audio-btn {
        font-size: 0.75em; 
        padding: 0.3em 0.5em; 
    }
    .video-background {
        filter: brightness(0.7);
    }

}

@media (max-width: 576px) {
    nav {
        padding: 0.8em 4%;
    }

    section {
        padding: 0.8em 4%;
        padding-top: 3.5em;
        margin-top: 0.3em;
        margin-bottom: 0.3em;
    }

    #home {
        padding-top: 4em;
        gap: 1.5em;
        min-height: 75vh;
        justify-content: center;
    }

    .info-box {
        gap: 0.8em;
    }

    .btn-box {
        margin-top: 1.2em;
        gap: 1.2em;
    }

    #home .profile-img {
        width: 60vw;
        max-width: 200px;
        margin-top: 1em;
    }

    .info-box h1 {
        font-size: clamp(1.8em, 6vw, 2em);
    }

    .info-box h3 {
        font-size: 0.95em;
    }

    #about {
        padding: 0.8em 4%;
        padding-top: 4em;
        margin-top: 0.5em;
        margin-bottom: 0.3em;
    }

    #about .about-info p {
        font-size: 0.9em;
    }

    .about-info h1 {
        font-size: clamp(1.3em, 5vw, 1.8em);
    }

    .about-image {
        max-width: 240px;
    }

    #projects, #blog, #faq, #testimonials, #ai-chatbot, #crypto-news, #crypto-charts {
        padding: 0.8em 4%;
        padding-top: 3.5em;
        margin-top: 0.3em;
        margin-bottom: 0.3em;
    }

    .home-page #blog {
        padding-top: 2.5em;
        margin-top: 0.8em;
        margin-bottom: 0.8em;
    }

    .home-page #faq {
        padding-top: 1.2em;
        margin-top: 0.5em;
        margin-bottom: 0.5em;
    }

    .projects-container {
        grid-template-columns: 1fr; 
        gap: 0.8em;
        padding: 0 0.5em;
    }

    #projects.projects-page .projects-container {
        gap: 0.8em;
    }

    #projects.projects-page .project-card {
        padding: 0.6em;
    }

    #projects.projects-page .project-card img {
        max-width: 100%;
        max-height: 250px;
        width: 100%;
        height: auto;
    }

    #projects.projects-page .project-card h3 {
        font-size: 0.95em;
    }

#projects.projects-page .project-description {
        font-size: 0.8em;
        margin-bottom: 0.8em;
    }

    .project-card img, .blog-link img {
        max-height: 150px;
    }

    .testimonial-card {
        padding: 0.8em;
    }

    .testimonial-card p {
        font-size: 0.85em;
    }

    .author-info h3 {
        font-size: 0.9em;
    }

    .author-info p {
        font-size: 0.75em;
    }

    .company-logo {
        max-width: 50px;
    }

    .faq-question h3 {
        font-size: 0.95em;
    }

    .faq-answer p {
        font-size: 0.85em;
    }

    .greeting-card {
        padding: 1.2em;
    }

    .greeting-card h2 {
        font-size: 1.3em;
    }

    .greeting-card p {
        font-size: 0.75em;
    }

    .greeting-card #closePopup {
        font-size: 1.3em;
    }

    .skills-heading {
        font-size: clamp(1.3em, 5vw, 1.8em);
        margin-bottom: 0.8em;
    }

    .focus-section h3 {
        font-size: clamp(1em, 3vw, 1.3em);
    }

    .focus-list ul li, .skills-progress ul li span {
        font-size: 0.85em;
    }

    .progress-bar {
        height: 8px;
        max-width: 180px;
    }

    .marquee-container {
        margin-top: 5px;
        margin-bottom: 5px;
    }

    #ai-chatbot {
        padding: 0.6em 4%;
        margin-top: 0.5em;
        margin-bottom: 0.5em;
    }

    #ai-chatbot .chatbot-container {
        padding: 10px;
    }

    #ai-chatbot .chatbot-messages {
        max-height: 200px;
    }

    #ai-chatbot .chatbot-input input {
        padding: 8px;
        touch-action: auto;
        -webkit-user-select: text;
        user-select: text;
        -webkit-appearance: none;
        appearance: none;
        box-sizing: border-box;
        width: 100%;
        z-index: 10;
    }

    #ai-chatbot .chatbot-send {
        padding: 8px 12px;
    }

    .suggestion-btn {
        font-size: 0.8rem;
        padding: 0.5rem;
    }

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

    form {
        gap: 0.8em;
        padding: 0 1.5em;
    }

    .input-box {
        gap: 0.3em;
        max-width: 280px;
    }

    form input, form textarea, #ai-chatbot .chatbot-input input {
        padding: 0.4em 0.8em;
        font-size: 0.9em;
        touch-action: auto; 
        -webkit-user-select: text; 
        user-select: text; 
        -webkit-appearance: none; 
        appearance: none; 
        box-sizing: border-box; 
        width: 100%; 
        z-index: 10; 
    }
    #crypto-calculator .calculator-container {
        padding: 0.8em;
    }

    #crypto-calculator .input-group label span {
        font-size: 0.85em;
    }

    #crypto-calculator .input-group input,
    #crypto-calculator .input-group select {
        padding: 0.6em;
        font-size: 0.85em;
    }

    #crypto-calculator .suggestions-list li {
        padding: 0.6em;
        font-size: 0.85em;
    }

    #crypto-calculator #calculate-btn {
        padding: 0.6em 1.2em;
        font-size: 0.9em;
    }

    #crypto-calculator .calculator-result {
        font-size: 0.9em;
        padding: 0.6em;
    }

    #crypto-calculator .token-details {
        padding: 0.6em;
    }

    #crypto-calculator .token-details h3 {
        font-size: 1em;
    }

    #crypto-calculator .token-details p {
        font-size: 0.8em;
    }

    #crypto-calculator .price-chart {
        padding: 0.6em;
    }

    #crypto-calculator .price-chart h3 {
        font-size: 1em;
    }

    #crypto-calculator .price-chart canvas {
        height: 120px !important;
    }

    #crypto-calculator .whatsapp-btn {
        font-size: 0.85em;
        padding: 0.5em 1em;
    }
    #crypto-news .projects-container {
        grid-template-columns: 1fr;
    }
    input, textarea {
        font-size: 16px; 
    }
    #crypto-tracker .tracker-container {
        padding: 0.6rem;
    }

    #crypto-tracker .input-group label span {
        font-size: 0.85rem;
    }

    #crypto-tracker .input-group input,
    #crypto-tracker .input-group select {
        padding: 0.5rem;
        font-size: 1rem;
    }

    #crypto-tracker #track-btn {
        padding: 0.5rem 1rem;
        font-size: 0.85rem;
    }

    #crypto-tracker .tracker-result {
        font-size: 0.85rem;
        padding: 0.5rem;
    }

    #crypto-tracker .transaction-table {
        font-size: 0.8rem;
    }

    #crypto-tracker .transaction-table th,
    #crypto-tracker .transaction-table td {
        padding: 0.5rem;
    }
    .pips-calculator-container {
        padding: 0.6em;
    }

    .pips-calculator-container .input-group label span {
        font-size: 0.85em;
    }

    .pips-calculator-container .input-group input,
    .pips-calculator-container .input-group select {
        padding: 0.5em;
        font-size: 0.8em;
    }

    .pips-calculator-container .btn {
        padding: 0.5em 1em;
        font-size: 0.85em;
    }

    .pips-result {
        font-size: 0.8em;
        padding: 0.5em;
    }
    .economic-calendar-box {
        padding: 0.8em;
    }

    .economic-calendar-container iframe {
        height: 400px;
    }

    .calendar-footer {
        font-size: 0.8em;
    }
    .qr-code-section {
        padding: 0.8em 4%;
    }

    .qr-container {
        gap: 1em; 
    }

    .qr-box {
        max-width: 160px;
        padding: 0.8em;
    }

    .qr-image {
        max-width: 120px;
    }

    .qr-text {
        font-size: 0.8em;
    }
    .filter-container {
        gap: 0.6em;
        margin-bottom: 1em;
    }

    .filter-btn {
        padding: 0.4em 0.8em;
        font-size: 0.9em;
    }

    .coming-soon {
        padding: 1em;
        margin: 1em auto;
        max-width: 95%;
    }

    .coming-soon h3 {
        font-size: 1.2em;
    }

    .coming-soon p {
        font-size: 0.8em;
    }


    .scroll-progress {
        height: 2px;
    }
    .welcome-content {
        padding: 0.6em 5%; 
        background-color: rgba(255, 255, 255, 0.95);
    }
    body.dark-mode .welcome-content {
        background-color: rgba(42, 42, 42, 0.95);
    }
    .welcome-content .greeting {
        font-size: clamp(0.9em, 3.5vw, 1.1em); 
    }
    .welcome-content h1 {
        font-size: clamp(1.4em, 4.5vw, 1.8em); 
    }
    .welcome-content p {
        font-size: clamp(0.8em, 2.5vw, 0.9em); 
    }
    .welcome-content .cta-button {
        font-size: 0.85em; 
        padding: 0.5em 1em; 
    }
    .greeting-card {
        padding: 1.2em; 
        gap: 0.5em; 
    }
    .greeting-card h2 {
        font-size: 1.1em;
        margin-bottom: 0.4em;
    }
    .greeting-card p {
        font-size: 0.65em;
        margin-bottom: 0.4em;
    }
    .greeting-card #greeting-message {
        margin-bottom: 0.5em;
    }
    .personalize-form {
        margin-top: 0.8em; 
        gap: 0.6em; 
    }
    .personalize-form .input-box label {
        font-size: 0.8em; 
    }
    .personalize-form input {
        font-size: 0.75em; 
        padding: 0.3em; 
    }
    .personalize-btn {
        font-size: 0.7em;
        padding: 0.3em 0.7em; 
        margin-top: 0.4em; 
    }
    .audio-controls {
        bottom: 8px; 
        right: 8px;
    }
    .audio-btn {
        font-size: 0.7em; 
        padding: 0.3em 0.5em;
    }

    #pdf-drop-zone {
        padding: 1rem;
    }

    #pdf-drop-zone i {
        font-size: 2rem;
    }

    #pdf-drop-zone p {
        font-size: 0.8em;
    }

    .file-list li {
        font-size: 0.8em;
    }

    .conversion-result {
        padding: 0.6rem;
        font-size: 0.8em;
    }

    .download-btn {
        padding: 0.4em 0.8em;
        font-size: 0.8em;
    }
}

@media (prefers-reduced-motion: reduce) {
    .welcome-header .logo {
        animation: none;
    }
    .welcome-header .logo:hover {
        animation: none;
    }
    .welcome-content .cta-button {
        animation: none;
    }
    .personalize-btn {
        animation: none;
    }
    .personalize-btn .loader {
        animation: none;
        border: 2px solid #ffffff;
    }
    body.dark-mode .personalize-btn .loader {
        border: 2px solid #01031d;
    }
    .audio-btn {
        animation: none;
    }
}

/* AI Chatbot Assistant */
.ai-chatbot-toggle {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color), var(--dark-color));
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 24px;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(0, 27, 96, 0.3);
    z-index: 1000;
    transition: all 0.3s ease;
    animation: float 3s ease-in-out infinite;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ai-chatbot-toggle:hover {
    background: linear-gradient(135deg, #0056b3, var(--primary-color));
    color: white;
    box-shadow: 0 8px 25px rgba(0, 27, 96, 0.4), 0 0 0 3px rgba(0, 27, 96, 0.1);
    transform: translateY(-3px) scale(1.05);
    animation: magneticHover 0.6s ease-out, elasticScale 0.8s ease-out;
}

.ai-chatbot-widget {
    position: fixed;
    bottom: 100px;
    right: 30px;
    width: 350px;
    height: 500px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    z-index: 999;
    transform: translateY(20px) scale(0.9);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: visible; 
}

.ai-chatbot-widget::before {
    content: "";
    position: absolute;
    inset: 0; 
    border-radius: 20px;
    padding: 2px; 
    background: linear-gradient(270deg, var(--primary-color), var(--dark-color), var(--primary-color));
    background-size: 300% 300%;
    animation: borderMove 6s linear infinite;
    -webkit-mask: 
        linear-gradient(#fff 0 0) content-box, 
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude; 
    pointer-events: none;
}

body.dark-mode .ai-chatbot-widget::before {
    background: linear-gradient(270deg, #ffffff, var(--primary-color), #ffffff);
}

@keyframes borderMove {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Active state */
.ai-chatbot-widget.active {
    transform: translateY(0) scale(1);
    opacity: 1;
    visibility: visible;
}

.ai-chatbot-widget.active {
    transform: translateY(0) scale(1);
    opacity: 1;
    visibility: visible;
}

.ai-chatbot-header {
    padding: 20px;
    background: transparent; 
    border-radius: 20px 20px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.ai-chatbot-header h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    background: linear-gradient(135deg, var(--primary-color), var(--dark-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.ai-chatbot-close {
    background: none;
    border: none;
    color: linear-gradient(to right, #FFFFFF, #D3D3D3);
    font-size: 20px;
    cursor: pointer;
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.2s ease;
}

.ai-chatbot-close:hover {
    background: rgba(0, 0, 0, 0.1);
}
.ai-chatbot-messages {
    height: 350px;
    overflow-y: auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.ai-message {
    max-width: 80%;
    padding: 12px 16px;
    border-radius: 18px;
    font-size: 14px;
    line-height: 1.4;
    animation: messageFadeIn 0.3s ease;
}

.ai-message.user {
    background: linear-gradient(135deg, var(--primary-color), var(--dark-color));
    color: white;
    align-self: flex-end;
    border-bottom-right-radius: 6px;
}

.ai-message.bot {
    background: #f0f2f5;
    color: #333;
    align-self: flex-start;
    border-bottom-left-radius: 6px;
}

.ai-suggestions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.ai-suggestion-btn {
    background: rgba(0, 27, 96, 0.1);
    border: 1px solid rgba(0, 27, 96, 0.2);
    color: var(--primary-color);
    padding: 8px 12px;
    border-radius: 20px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.ai-suggestion-btn:hover {
    background: linear-gradient(135deg, #0056b3, var(--primary-color));
    color: white;
    box-shadow: 0 8px 25px rgba(0, 27, 96, 0.4), 0 0 0 3px rgba(0, 27, 96, 0.1);
    transform: translateY(-3px) scale(1.05);
    animation: magneticHover 0.6s ease-out, elasticScale 0.8s ease-out;
}

.ai-chatbot-input {
    padding: 15px 20px;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    display: flex;
    gap: 10px;
    align-items: center;
}

.ai-chatbot-input input {
    flex: 1;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 25px;
    padding: 12px 16px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease;
    background: white;
    color: #333;
}

.ai-chatbot-input input:focus {
    border-color: var(--primary-color);
}

.ai-send-btn {
    background: linear-gradient(135deg, var(--primary-color), var(--dark-color));
    border: none;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease;
}

.ai-send-btn:hover {
    background: linear-gradient(135deg, #0056b3, var(--primary-color));
    color: white;
    box-shadow: 0 8px 25px rgba(0, 27, 96, 0.4), 0 0 0 3px rgba(0, 27, 96, 0.1);
    transform: translateY(-3px) scale(1.05);
    animation: magneticHover 0.6s ease-out, elasticScale 0.8s ease-out;}

.ai-typing {
    display: flex;
    align-items: center;
    gap: 4px;
    color: #666;
    font-size: 12px;
    padding: 12px 16px;
    background: #f0f2f5;
    border-radius: 18px;
    align-self: flex-start;
}

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

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

.ai-typing-dots {
    display: flex;
    gap: 2px;
}

.ai-typing-dot {
    width: 4px;
    height: 4px;
    background: #666;
    border-radius: 50%;
    animation: typingDot 1.4s infinite;
}

.ai-typing-dot:nth-child(2) {
    animation-delay: 0.2s;
}

.ai-typing-dot:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes typingDot {
    0%, 60%, 100% {
        opacity: 0.3;
        transform: scale(0.8);
    }
    30% {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes glowPulse {
    0%, 100% {
        box-shadow: 0 4px 20px rgba(0, 27, 96, 0.3);
    }
    50% {
        box-shadow: 0 6px 30px rgba(0, 27, 96, 0.6);
    }
}

body.dark-mode .ai-chatbot-widget {
    background: rgba(42, 42, 42, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

body.dark-mode .ai-message.bot {
    background: #2a2a2a;
    color: #e0e0e0;
}

body.dark-mode .ai-chatbot-input {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

body.dark-mode .ai-chatbot-input input {
    background: #2a2a2a;
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

body.dark-mode .ai-suggestion-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #e0e0e0;
}

body.dark-mode .ai-suggestion-btn:hover {
    background: var(--primary-color);
    color: white;
}

body.dark-mode .ai-typing {
    background: #2a2a2a;
    color: #e0e0e0;
}

body.dark-mode .ai-chatbot-header h3 {
    background: linear-gradient(135deg, #ffffff, #ffffff); 
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
body.dark-mode .ai-chatbot-close {
    color: white; 
}
body.dark-mode .ai-chatbot-close:hover {
    background: rgba(255, 255, 255, 0.2); 
}
.glowing-newsletter {
    animation: glowPulse 2s infinite ease-in-out;
    border: 1px solid transparent;
    background: linear-gradient(135deg, var(--primary-color), var(--dark-color));
    color: white !important;
}

body.dark-mode .glowing-newsletter {
    animation: darkGradientGlow 2s infinite ease-in-out;
    background: linear-gradient(135deg, #ffffff, #d3d3d3);
    color: #01031d !important;
}

/* Mobile responsiveness for chatbot */
@media (max-width: 768px) {
    .ai-chatbot-toggle {
        bottom: 20px;
        right: 20px;
        width: 50px;
        height: 50px;
        font-size: 20px;
    }
    
    .ai-chatbot-widget {
        bottom: 80px;
        right: 20px;
        left: 20px;
        width: auto;
        height: 400px;
    }
    
    .ai-chatbot-messages {
        height: 250px;
    }
}


input, textarea, select, button {
    pointer-events: auto;
    touch-action: auto;
}
