/* ============================================
   ENHANCED CSS ADDITIONS & IMPROVEMENTS
   ============================================ */

/* ===== DARK MODE SUPPORT ===== */
:root {
    --bg-light: #f7f7f7;
    --bg-dark: #0f0f1e;
    --text-light: #000;
    --text-dark: #fff;
    --accent-primary: #2506ad;
    --accent-secondary: #ff7b00;
}

/* Dark mode variables */
@media (prefers-color-scheme: dark) {
    :root {
        --bg-light: #0f0f1e;
        --bg-dark: #1a1a2e;
        --text-light: #fff;
        --text-dark: #000;
    }
}

/* ===== ENHANCED ANIMATIONS ===== */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

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

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }

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

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }

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

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }

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

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

@keyframes glow {

    0%,
    100% {
        box-shadow: 0 0 5px rgba(37, 6, 173, 0.5);
    }

    50% {
        box-shadow: 0 0 20px rgba(37, 6, 173, 0.8);
    }
}

@keyframes float {

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

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

/* ===== ENHANCED SCROLL ANIMATIONS ===== */
.scroll-reveal {
    opacity: 0;
    transform: translateY(30px);
}

.scroll-reveal.active {
    animation: slideInUp 0.6s ease-out forwards;
}

/* ===== IMPROVED BUTTONS ===== */
.btn {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.2);
    transition: left 0.3s ease;
    z-index: -1;
}

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

/* ===== ENHANCED SKILL CARDS ===== */
.skills .bar {
    animation: slideInUp 0.5s ease-out both;
    position: relative;
}

.skills .bar:nth-child(1) {
    animation-delay: 0.1s;
}

.skills .bar:nth-child(2) {
    animation-delay: 0.2s;
}

.skills .bar:nth-child(3) {
    animation-delay: 0.3s;
}

.skills .bar:nth-child(4) {
    animation-delay: 0.4s;
}

.skills .bar:nth-child(5) {
    animation-delay: 0.5s;
}

.skills .bar:nth-child(6) {
    animation-delay: 0.6s;
}

.skills .bar::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% {
        left: -100%;
    }

    100% {
        left: 100%;
    }
}

/* ===== ENHANCED FORM STYLING ===== */
.contact form input,
.contact form textarea {
    background: #e5ecfb !important;
    border: 1px solid #999 !important;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    padding: 1.2rem 1.2rem 1.2rem 7.5rem !important;
    font-size: 1.5rem;
    border-radius: 0.5rem;
    color: #000;
}

.contact form input:focus,
.contact form textarea:focus {
    border-color: #2506ad !important;
    box-shadow: 0 0 10px rgba(37, 6, 173, 0.3);
    transform: translateY(-2px);
}

.contact form input::placeholder,
.contact form textarea::placeholder {
    color: rgba(0, 0, 0, 0.6);
}

/* ===== ENHANCED INPUT VALIDATION ===== */
.contact form input.valid {
    border-color: #22c55e !important;
    background: rgba(34, 197, 94, 0.1) !important;
}

.contact form input.invalid {
    border-color: #ef4444 !important;
    background: rgba(239, 68, 68, 0.1) !important;
}

.error-message {
    color: #ef4444;
    font-size: 1.2rem;
    margin-top: 0.5rem;
    display: none;
}

.error-message.show {
    display: block;
    animation: slideInUp 0.3s ease-out;
}

/* ===== SUCCESS MESSAGE ===== */
.success-message {
    position: fixed;
    top: 20px;
    right: 20px;
    background: #22c55e;
    color: white;
    padding: 1.5rem 2rem;
    border-radius: 0.5rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    animation: slideInRight 0.3s ease-out;
    z-index: 10000;
    max-width: 400px;
}

@media (max-width: 600px) {
    .success-message {
        left: 20px;
        right: auto;
        max-width: 90%;
    }
}

/* ===== ENHANCED SCROLL TOP BUTTON ===== */
#scroll-top {
    position: fixed;
    bottom: -100px;
    right: 2rem;
    z-index: 100;
    background: #2506ad;
    color: #fff;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(37, 6, 173, 0.4);
}

#scroll-top:hover {
    background: #1a047e;
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(37, 6, 173, 0.6);
}

#scroll-top.active {
    bottom: 9rem;
}

/* ===== ENHANCED LOADING SKELETON ===== */
.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

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

    100% {
        background-position: -200% 0;
    }
}

/* ===== ENHANCED CARD HOVER EFFECTS ===== */
.education .box-container .box,
.work .box-container .box {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.education .box-container .box:hover {
    transform: translateY(-8px);
}

.work .box-container .box:hover {
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

/* ===== ENHANCED SOCIAL ICONS ===== */
.social-icons a {
    animation: slideInUp 0.5s ease-out both;
}

.social-icons a:nth-child(1) {
    animation-delay: 0.1s;
}

.social-icons a:nth-child(2) {
    animation-delay: 0.2s;
}

.social-icons a:nth-child(3) {
    animation-delay: 0.3s;
}

.social-icons a:nth-child(4) {
    animation-delay: 0.4s;
}

.social-icons a:nth-child(5) {
    animation-delay: 0.5s;
}

.social-icons a:nth-child(6) {
    animation-delay: 0.6s;
}

.social-icons a {
    position: relative;
    overflow: hidden;
}

.social-icons a::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.2);
    transition: left 0.3s ease;
}

.social-icons a:hover::before {
    left: 100%;
}

/* ===== RESPONSIVE IMPROVEMENTS ===== */
@media (max-width: 768px) {
    .home .content h2 {
        font-size: 3.5rem;
    }

    .home .content p {
        font-size: 1.8rem;
    }

    .heading {
        font-size: 2.5rem;
    }

    section {
        padding: 1rem 5%;
    }

    header {
        padding: 1.2rem 5%;
    }
}

@media (max-width: 600px) {
    #scroll-top {
        width: 45px;
        height: 45px;
        font-size: 1.5rem;
        right: 1rem;
        bottom: auto;
    }

    #scroll-top.active {
        bottom: 8rem;
    }

    .home .content h2 {
        font-size: 2.5rem;
    }

    .home .content p {
        font-size: 1.5rem;
    }

    .heading {
        font-size: 2rem;
    }

    .success-message {
        top: 10px;
        right: 10px;
        left: 10px;
        padding: 1rem 1.5rem;
    }
}

/* ===== ACCESSIBILITY IMPROVEMENTS ===== */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ===== FOCUS STATES FOR KEYBOARD NAVIGATION ===== */
a:focus,
button:focus,
input:focus,
textarea:focus,
select:focus {
    outline: 2px solid #2506ad;
    outline-offset: 2px;
}

/* ===== IMPROVED TYPOGRAPHY ===== */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
    line-height: 1.2;
}

p {
    line-height: 1.6;
    color: rgba(0, 0, 0, 0.8);
}

/* ===== PERFORMANCE OPTIMIZATIONS ===== */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Lazy loading images */
img[loading="lazy"] {
    background: #f0f0f0;
}

/* ===== ENHANCED FOOTER ===== */
.footer {
    position: relative;
    background: #ffffff !important;
    padding: 6rem 9% 3rem !important;
    overflow: hidden;
    background-image: 
        radial-gradient(at 0% 0%, rgba(59, 130, 246, 0.05) 0px, transparent 50%), 
        radial-gradient(at 100% 100%, rgba(255, 123, 0, 0.04) 0px, transparent 50%),
        linear-gradient(rgba(0, 0, 0, 0.003) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 0, 0, 0.003) 1px, transparent 1px) !important;
    background-size: 100% 100%, 100% 100%, 30px 30px, 30px 30px !important;
    border-top: 1px solid rgba(0, 0, 0, 0.06) !important;
    z-index: 1;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #2506ad, #8b5cf6, #ff7b00, #2506ad);
    background-size: 300% 100%;
    animation: borderGlowMove 6s linear infinite;
    z-index: 5;
}

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

.footer .box-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(25rem, 1fr));
    gap: 3.5rem;
    position: relative;
    z-index: 2;
}

.footer .box-container .box {
    display: flex;
    flex-direction: column;
}

.footer .box-container .box h3 {
    font-size: 2rem;
    color: #1e293b !important;
    padding-bottom: 1.2rem;
    margin-bottom: 1.5rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12rem;
    position: relative;
}

.footer .box-container .box h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 3.5rem;
    height: 3px;
    background: linear-gradient(90deg, #3b82f6, #ff7b00);
    border-radius: 2px;
    transition: width 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.footer .box-container .box:hover h3::after {
    width: 7rem;
}

.footer .box-container .box p {
    font-size: 1.45rem;
    color: #475569 !important;
    line-height: 1.8;
    text-transform: none;
    margin: 0;
}

/* Quick Links and Contact Info wrappers */
.footer .box-container .box .links {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

/* Base style for links */
.footer .box-container .box a {
    font-size: 1.45rem;
    color: #475569 !important;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    display: flex;
    align-items: center;
    gap: 1rem;
    text-decoration: none;
}

/* Quick Links specific styles */
.footer .box-container .box:nth-child(2) .links a {
    text-transform: capitalize;
    padding: 0.2rem 0;
}

.footer .box-container .box:nth-child(2) .links a i {
    color: #3b82f6 !important;
    font-size: 1.2rem;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.footer .box-container .box:nth-child(2) .links a:hover {
    color: #ff7b00 !important;
    transform: translateX(8px);
}

.footer .box-container .box:nth-child(2) .links a:hover i {
    color: #ff7b00 !important;
    transform: translateX(3px) scale(1.2);
}

/* Contact Info specific styles (the 3rd box) */
.footer .box-container .box:last-child .links a {
    background: rgba(0, 0, 0, 0.02) !important;
    padding: 1.2rem 1.6rem;
    border-radius: 0.8rem;
    border: 1px solid rgba(0, 0, 0, 0.05) !important;
    margin-bottom: 0.2rem;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    color: #334155 !important;
}

.footer .box-container .box:last-child .links a i {
    background: rgba(59, 130, 246, 0.08) !important;
    color: #3b82f6 !important;
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 0.6rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.footer .box-container .box:last-child .links a:hover {
    background: #ffffff !important;
    border-color: rgba(59, 130, 246, 0.2) !important;
    transform: translateY(-3px);
    color: #2563eb !important;
    box-shadow: 0 8px 24px rgba(59, 130, 246, 0.08) !important;
}

.footer .box-container .box:last-child .links a:hover i {
    background: #3b82f6 !important;
    color: #fff !important;
    transform: scale(1.1) rotate(10deg);
    box-shadow: 0 0 10px rgba(59, 130, 246, 0.3);
}

/* Social Share icons in 1st box */
.footer .box-container .box .share {
    display: flex;
    gap: 1.2rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.footer .box-container .box .share a {
    height: 4.5rem;
    width: 4.5rem;
    font-size: 1.8rem;
    background: rgba(0, 0, 0, 0.03) !important;
    color: #475569 !important;
    border-radius: 50%;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(0, 0, 0, 0.06) !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

/* Specific Social Brand Hovers */
.footer .box-container .box .share a.fa-linkedin:hover {
    background: #007bb6 !important;
    border-color: #007bb6 !important;
    color: #fff !important;
    box-shadow: 0 0 15px rgba(0, 123, 182, 0.4) !important;
    transform: translateY(-5px) scale(1.1);
}

.footer .box-container .box .share a.fa-github:hover {
    background: #24292e !important;
    border-color: #24292e !important;
    color: #fff !important;
    box-shadow: 0 0 15px rgba(36, 41, 46, 0.3) !important;
    transform: translateY(-5px) scale(1.1);
}

.footer .box-container .box .share a.fa-envelope:hover {
    background: #ea4335 !important;
    border-color: #ea4335 !important;
    color: #fff !important;
    box-shadow: 0 0 15px rgba(234, 67, 53, 0.4) !important;
    transform: translateY(-5px) scale(1.1);
}

.footer .box-container .box .share a.fa-twitter:hover {
    background: #1da1f2 !important;
    border-color: #1da1f2 !important;
    color: #fff !important;
    box-shadow: 0 0 15px rgba(29, 161, 242, 0.4) !important;
    transform: translateY(-5px) scale(1.1);
}

.footer .box-container .box .share a.fa-telegram-plane:hover {
    background: #0088cc !important;
    border-color: #0088cc !important;
    color: #fff !important;
    box-shadow: 0 0 15px rgba(0, 136, 204, 0.4) !important;
    transform: translateY(-5px) scale(1.1);
}

.footer .box-container .box .share a.fa-kaggle:hover {
    background: #20beff !important;
    border-color: #20beff !important;
    color: #fff !important;
    box-shadow: 0 0 15px rgba(32, 190, 255, 0.4) !important;
    transform: translateY(-5px) scale(1.1);
}

/* Credit and Copyright Bar */
.footer .credit {
    padding: 2.5rem 0;
    text-align: center;
    border-top: 1px solid rgba(0, 0, 0, 0.06) !important;
    color: #475569 !important;
    font-size: 1.45rem;
    margin-top: 4rem;
    position: relative;
    z-index: 2;
    letter-spacing: 0.05rem;
}

.footer .credit a {
    color: #3b82f6 !important;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-block;
    padding-bottom: 2px;
}

.footer .credit a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background-color: #3b82f6 !important;
    transition: width 0.3s ease;
}

.footer .credit a:hover {
    color: #1d4ed8 !important;
    text-decoration: none;
}

.footer .credit a:hover::after {
    width: 100%;
    background-color: #1d4ed8 !important;
}

.footer .fa-heart {
    color: #ff4d4d;
    animation: pound 0.6s infinite alternate;
    display: inline-block;
    margin: 0 0.3rem;
}

@keyframes pound {
    to { transform: scale(1.25); }
}


.research {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
}

.research .heading span {
    color: #ff7b00;
}

.research-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2.5rem;
    margin: 3rem 0;
    padding: 2rem;
}

.research-card {
    background: white;
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    border-left: 5px solid #ff7b00;
}

.research-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 123, 0, 0.1) 0%, rgba(37, 6, 173, 0.1) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.research-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 12px 30px rgba(255, 123, 0, 0.25);
    border-left-color: #2506ad;
}

.research-card:hover::before {
    opacity: 1;
}

.research-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ff7b00 0%, #ff9500 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
}

.research-card:hover .research-icon {
    background: linear-gradient(135deg, #2506ad 0%, #5a2d82 100%);
    transform: scale(1.1) rotate(5deg);
}

.research-card h3 {
    font-size: 1.5rem;
    color: #333;
    margin-bottom: 1rem;
    font-weight: 700;
    line-height: 1.4;
}

.research-card p {
    font-size: 1.1rem;
    color: #666;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.research-tags {
    display: flex;
    gap: 0.8rem;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}

.tag-item {
    background: linear-gradient(135deg, rgba(255, 123, 0, 0.1), rgba(255, 123, 0, 0.05));
    color: #ff7b00;
    padding: 0.4rem 0.9rem;
    border-radius: 2rem;
    font-size: 0.9rem;
    font-weight: 600;
    border: 1px solid rgba(255, 123, 0, 0.3);
    transition: all 0.3s ease;
}

.research-card:hover .tag-item {
    background: linear-gradient(135deg, rgba(37, 6, 173, 0.15), rgba(37, 6, 173, 0.05));
    color: #2506ad;
    border-color: rgba(37, 6, 173, 0.3);
}

.research-links {
    display: flex;
    gap: 1rem;
}

.research-btn {
    flex: 1;
    padding: 0.8rem 1.2rem;
    border-radius: 0.5rem;
    font-size: 0.95rem;
    font-weight: 600;
    text-align: center;
    transition: all 0.3s ease;
    border: 2px solid #ff7b00;
    color: #ff7b00;
    background: white;
}

.research-btn:first-child {
    background: linear-gradient(135deg, #ff7b00 0%, #ff9500 100%);
    color: white;
    border-color: #ff7b00;
}

.research-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(255, 123, 0, 0.3);
}

.research-btn:first-child:hover {
    background: linear-gradient(135deg, #ff6a00 0%, #ff8800 100%);
}

.research-btn:last-child:hover {
    background: #ff7b00;
    color: white;
    border-color: #ff7b00;
}

/* ===== NEW SECTIONS STYLING (COURSES, BLOG, TECHNEWS) ===== */
.courses, .blog, .technews {
    background: #f7f7f7;
}

.courses .box-container, .blog .box-container, .technews .box-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.courses .box, .blog .box, .technews .box {
    background: #fff;
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    border-bottom: 4px solid #2506ad;
}

.courses .box:hover, .blog .box:hover, .technews .box:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(37, 6, 173, 0.2);
}

.courses .box img {
    width: 100%;
    height: 18rem;
    object-fit: cover;
    border-radius: 0.5rem;
    margin-bottom: 1.5rem;
}

.courses .box h3, .blog .box h3, .technews .box h3 {
    font-size: 2.2rem;
    color: #012970;
    margin-bottom: 1rem;
    font-weight: 700;
}

.courses .box p, .blog .box p, .technews .box p {
    font-size: 1.5rem;
    color: #444;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.blog .box .tag h3 {
    color: #2506ad;
    font-size: 1.8rem;
}

.technews .box {
    border-bottom-color: #ff7b00;
}

.technews .box:hover {
    box-shadow: 0 15px 30px rgba(255, 123, 0, 0.2);
}

.footer a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: #2506ad;
    transition: width 0.3s ease;
}

.footer a:hover::after {
    width: 100%;
}

/* ===== SMOOTH PAGE TRANSITIONS ===== */
body {
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* ===== TOOLTIP STYLES ===== */
.tooltip {
    position: relative;
    display: inline-block;
}

.tooltip .tooltiptext {
    visibility: hidden;
    width: 120px;
    background-color: #2506ad;
    color: #fff;
    text-align: center;
    padding: 0.5rem;
    border-radius: 0.3rem;
    position: absolute;
    z-index: 1;
    bottom: 125%;
    left: 50%;
    margin-left: -60px;
    opacity: 0;
    transition: opacity 0.3s;
    font-size: 0.9rem;
}

.tooltip .tooltiptext::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: #2506ad transparent transparent transparent;
}

.tooltip:hover .tooltiptext {
    visibility: visible;
    opacity: 1;
}

/* ===== PRINT STYLES ===== */
@media print {

    header,
    #scroll-top,
    .contact {
        display: none;
    }

    body {
        font-size: 12pt;
        color: #000;
        background: #fff;
    }

    section {
        page-break-inside: avoid;
    }

    a {
        color: #2506ad;
    }
}

/* ===== INTERACTIVE SKILLS SECTION ===== */

/* Skills Filter Buttons */
.skills-filters {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin: 2.5rem 0;
    flex-wrap: wrap;
    animation: slideInDown 0.6s ease-out;
}

.filter-btn {
    padding: 0.8rem 1.8rem;
    border: 2px solid #2506ad;
    background: white;
    color: #2506ad;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.filter-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(37, 6, 173, 0.2);
}

.filter-btn.active {
    background: linear-gradient(135deg, #2506ad 0%, #5a2d82 100%);
    color: white;
    box-shadow: 0 8px 25px rgba(37, 6, 173, 0.35);
    transform: scale(1.05);
}

.filter-btn i {
    font-size: 1.1rem;
}

/* Skills Grid Layout */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
    animation: slideInUp 0.6s ease-out;
}

/* Individual Skill Card */
.skill-card {
    background: white;
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    border: 2px solid transparent;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    color: #333;
}

.skill-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(37, 6, 173, 0.1) 0%, transparent 70%);
    transition: all 0.5s ease;
    z-index: 0;
}

.skill-card.hidden {
    display: none;
}

.skill-card:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 0 20px 40px rgba(37, 6, 173, 0.2);
    border-color: #2506ad;
}

.skill-card:hover::before {
    top: -20%;
    right: -20%;
}

/* Skill Card Content */
.skill-content {
    position: relative;
    z-index: 2;
    width: 100%;
}

.skill-icon {
    width: 100px;
    height: 100px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, rgba(37, 6, 173, 0.1), rgba(255, 123, 0, 0.1));
    border-radius: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.skill-icon::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: shimmer 3s infinite;
}

.skill-icon img {
    width: 70px;
    height: 70px;
    object-fit: contain;
    position: relative;
    z-index: 2;
    transition: all 0.3s ease;
}

.skill-card:hover .skill-icon {
    background: linear-gradient(135deg, rgba(37, 6, 173, 0.2), rgba(255, 123, 0, 0.2));
    transform: scale(1.1) rotate(5deg);
}

.skill-card:hover .skill-icon img {
    transform: scale(1.15) rotate(-5deg);
}

/* Skill Name */
.skill-name {
    font-size: 1.4rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 0.8rem;
    transition: all 0.3s ease;
}

.skill-card:hover .skill-name {
    color: #2506ad;
}

/* Skill Description */
.skill-description {
    font-size: 0.95rem;
    color: #666;
    margin-bottom: 1.5rem;
    line-height: 1.5;
    min-height: 40px;
}

/* Proficiency Bar */
.proficiency-container {
    width: 100%;
    margin: 1.5rem 0;
}

.proficiency-label {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    color: #999;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.proficiency-bar {
    width: 100%;
    height: 8px;
    background: #e0e0e0;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
}

.proficiency-bar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background: linear-gradient(90deg, #2506ad 0%, #5a2d82 100%);
    border-radius: 10px;
    transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    width: 0;
    animation: proficiencyFill 0.8s ease-out forwards;
}

@keyframes proficiencyFill {
    from {
        width: 0;
    }

    to {
        width: var(--proficiency, 80%);
    }
}

/* Projects Tags */
.skill-projects {
    display: flex;
    gap: 0.6rem;
    flex-wrap: wrap;
    justify-content: center;
    margin: 1.5rem 0;
}

.project-tag {
    background: linear-gradient(135deg, rgba(37, 6, 173, 0.1), rgba(37, 6, 173, 0.05));
    color: #2506ad;
    padding: 0.35rem 0.8rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    border: 1px solid rgba(37, 6, 173, 0.3);
    transition: all 0.3s ease;
    cursor: pointer;
}

.project-tag:hover {
    background: linear-gradient(135deg, #2506ad, #5a2d82);
    color: white;
    border-color: #2506ad;
    transform: scale(1.05);
}

/* Category Indicator */
.skill-category {
    font-size: 0.75rem;
    color: #ff7b00;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #f0f0f0;
}

/* Skills Grid Responsive */
@media (max-width: 768px) {
    .skills-grid {
        grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
        gap: 1.5rem;
    }

    .filter-btn {
        padding: 0.7rem 1.4rem;
        font-size: 0.9rem;
    }

    .skill-icon {
        width: 80px;
        height: 80px;
    }

    .skill-icon img {
        width: 60px;
        height: 60px;
    }

    .skill-name {
        font-size: 1.2rem;
    }
}

@media (max-width: 600px) {
    .skills-filters {
        gap: 0.8rem;
    }

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

    .filter-btn i {
        display: none;
    }

    .skills-grid {
        grid-template-columns: 1fr;
    }

    .skill-card {
        padding: 1.5rem;
    }
}

/* Smooth Transitions for Filter Changes */
.skill-card.fade-out {
    opacity: 0;
    transform: scale(0.8);
}

.skill-card.fade-in {
    animation: slideInUp 0.4s ease-out;
}

/* ============================================
   ENHANCED NAVBAR STYLES
   ============================================ */

header {
    background: rgba(255, 255, 255, 0.8) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

header.scrolled {
    height: 5.5rem !important;
    background: rgba(255, 255, 255, 0.95) !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

header .logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 2.1rem !important;
    font-weight: 900 !important;
    letter-spacing: 0.05rem;
    text-transform: capitalize;
    transition: transform 0.3s ease;
}

.logo-text-wrapper {
    display: inline-flex;
    align-items: center;
}

.logo-letter {
    display: inline-block;
    animation: logoRainbowColor 6s linear infinite;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    will-change: color, text-shadow, transform;
}

.logo-letter:hover {
    transform: translateY(-6px) scale(1.25);
}

@keyframes logoRainbowColor {
  0%, 100% {
    color: #ff007f;
    text-shadow: 
      0.5px 0.5px 0px #ab0055,
      1px 1px 0px #ab0055,
      1.5px 1.5px 0px #700037,
      2px 2px 0px #700037,
      2.5px 2.5px 0px #4d0026,
      3px 3px 0px #4d0026,
      3.5px 3.5px 5px rgba(0, 0, 0, 0.15);
  }
  20% {
    color: #00d9ff;
    text-shadow: 
      0.5px 0.5px 0px #008fa8,
      1px 1px 0px #008fa8,
      1.5px 1.5px 0px #006070,
      2px 2px 0px #006070,
      2.5px 2.5px 0px #003640,
      3px 3px 0px #003640,
      3.5px 3.5px 5px rgba(0, 0, 0, 0.15);
  }
  40% {
    color: #fc8c05;
    text-shadow: 
      0.5px 0.5px 0px #b06103,
      1px 1px 0px #b06103,
      1.5px 1.5px 0px #7d4402,
      2px 2px 0px #7d4402,
      2.5px 2.5px 0px #4d2a01,
      3px 3px 0px #4d2a01,
      3.5px 3.5px 5px rgba(0, 0, 0, 0.15);
  }
  60% {
    color: #2ecc71;
    text-shadow: 
      0.5px 0.5px 0px #1e854a,
      1px 1px 0px #1e854a,
      1.5px 1.5px 0px #145932,
      2px 2px 0px #145932,
      2.5px 2.5px 0px #0a2d19,
      3px 3px 0px #0a2d19,
      3.5px 3.5px 5px rgba(0, 0, 0, 0.15);
  }
  80% {
    color: #bf55ec;
    text-shadow: 
      0.5px 0.5px 0px #8e3cb2,
      1px 1px 0px #8e3cb2,
      1.5px 1.5px 0px #602978,
      2px 2px 0px #602978,
      2.5px 2.5px 0px #381847,
      3px 3px 0px #381847,
      3.5px 3.5px 5px rgba(0, 0, 0, 0.15);
  }
}

header .logo i {
    color: #ff7b00;
    transition: transform 0.5s ease;
}

header .logo:hover {
    transform: scale(1.05);
}

header .logo:hover i {
    transform: rotate(360deg);
}

header .navbar ul li {
    margin-left: 1.5rem !important;
}

header .navbar ul li a {
    position: relative;
    padding: 0.5rem 0 !important;
    border-bottom: none !important;
    color: #0e2431 !important;
}

header .navbar ul li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #2506ad, #ff7b00);
    transition: width 0.3s ease;
    border-radius: 2px;
}

header .navbar ul li a:hover::after,
header .navbar ul li a.active::after {
    width: 100%;
}

header .navbar ul li a.active {
    color: #2506ad !important;
}

header .navbar ul li a.active::before {
    content: '';
    position: absolute;
    top: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 4px;
    background: #ff7b00;
    border-radius: 50%;
    box-shadow: 0 0 10px #ff7b00;
}

/* Mobile Menu Enhancements */
@media (max-width: 768px) {
    header .navbar {
        background: rgba(14, 15, 49, 0.98) !important;
        backdrop-filter: blur(15px);
        width: 100% !important;
        height: 100vh !important;
        top: 0 !important;
        right: -100% !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        transition: right 0.5s cubic-bezier(0.77, 0.2, 0.05, 1.0) !important;
    }

    header .navbar.nav-toggle {
        right: 0 !important;
    }

    header .navbar ul {
        width: 100%;
        padding: 2rem !important;
        flex-direction: column !important;
    }

    header .navbar ul li {
        width: 100% !important;
        margin: 1.5rem 0 !important;
        opacity: 0;
        transform: translateY(20px);
        transition: all 0.4s ease;
    }

    header .navbar.nav-toggle ul li {
        opacity: 1;
        transform: translateY(0);
    }

    /* Staggered animation for menu items */
    header .navbar.nav-toggle ul li:nth-child(1) { transition-delay: 0.1s; }
    header .navbar.nav-toggle ul li:nth-child(2) { transition-delay: 0.2s; }
    header .navbar.nav-toggle ul li:nth-child(3) { transition-delay: 0.3s; }
    header .navbar.nav-toggle ul li:nth-child(4) { transition-delay: 0.4s; }
    header .navbar.nav-toggle ul li:nth-child(5) { transition-delay: 0.5s; }
    header .navbar.nav-toggle ul li:nth-child(6) { transition-delay: 0.6s; }
    header .navbar.nav-toggle ul li:nth-child(7) { transition-delay: 0.7s; }
    header .navbar.nav-toggle ul li:nth-child(8) { transition-delay: 0.8s; }

    header .navbar ul li a {
        font-size: 2.2rem !important;
        text-align: center !important;
        width: 100%;
        display: block;
        color: #fff !important;
        transition: all 0.3s ease !important;
    }

    header .navbar ul li a:hover {
        color: #ff7b00 !important;
        transform: scale(1.1);
        letter-spacing: 2px;
    }

    header .navbar ul li a.active {
        color: #ff7b00 !important;
        font-weight: 800;
    }

    header .navbar ul li a.active::before {
        display: none; /* Hide the dot on mobile */
    }

    #menu {
        z-index: 1001;
        position: relative;
    }
}

/* Dark Mode Adjustments for Navbar */
@media (prefers-color-scheme: dark) {
    header {
        background: rgba(15, 15, 30, 0.8) !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }

    header.scrolled {
        background: rgba(15, 15, 30, 0.95) !important;
    }

    header .navbar ul li a {
        color: #fff !important;
    }

    header .navbar ul li a.active {
        color: #ff7b00 !important;
    }
}

/* ===== TAWK.TO LIVE CHAT STYLING ===== */
.tawk-trigger-text {
    color: #ff7b00;
    font-weight: 600;
    cursor: pointer;
    border-bottom: 2px dashed #ff7b00;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    position: relative;
}

.tawk-trigger-text:hover {
    color: #2506ad;
    border-bottom-color: #2506ad;
}

.tawk-status-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: #a0aec0; /* gray by default */
    display: inline-block;
    position: relative;
    transition: all 0.3s ease;
}

.tawk-status-dot.online {
    background-color: #48bb78; /* green */
    box-shadow: 0 0 8px #48bb78;
    animation: tawk-pulse 1.5s infinite;
}

.tawk-status-dot.offline {
    background-color: #e53e3e; /* red */
    box-shadow: 0 0 8px #e53e3e;
}

@keyframes tawk-pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(72, 187, 120, 0.7);
    }
    70% {
        box-shadow: 0 0 0 8px rgba(72, 187, 120, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(72, 187, 120, 0);
    }
}

/* ===== CUSTOM TAWK.TO FLOATING BUTTON ===== */
#custom-tawk-wrapper {
    position: fixed;
    bottom: 2rem;
    left: 2rem;
    width: 60px;
    height: 60px;
    z-index: 9998;
}

.tawk-btn-pulse {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: #ff7b00;
    animation: tawk-pulse-glow 2s infinite;
    z-index: -1;
}

@keyframes tawk-pulse-glow {
    0% {
        transform: scale(1);
        opacity: 0.7;
    }
    100% {
        transform: scale(1.6);
        opacity: 0;
    }
}

.custom-tawk-btn {
    position: absolute;
    top: 0;
    left: 0;
    width: 60px;
    height: 60px;
    border-radius: 30px;
    background: linear-gradient(135deg, #2506ad 0%, #ff7b00 100%);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 10px 20px rgba(37, 6, 173, 0.4);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    overflow: hidden;
    white-space: nowrap;
}

.custom-tawk-btn:hover {
    width: 180px;
    justify-content: flex-start;
    padding-left: 20px;
    box-shadow: 0 15px 30px rgba(255, 123, 0, 0.6);
    transform: translateY(-5px);
}

.custom-tawk-btn i {
    font-size: 26px;
    transition: all 0.3s ease;
}

.custom-tawk-btn:hover i {
    margin-right: 12px;
}

.custom-tawk-btn .tawk-text {
    font-weight: 700;
    font-size: 1.1rem;
    opacity: 0;
    width: 0;
    transition: all 0.3s ease;
}

.custom-tawk-btn:hover .tawk-text {
    opacity: 1;
    width: auto;
}

@media (max-width: 600px) {
    #custom-tawk-wrapper {
        bottom: 1.5rem;
        left: 1.5rem;
        width: 50px;
        height: 50px;
    }
    
    .custom-tawk-btn {
        width: 50px;
        height: 50px;
    }
    
    .custom-tawk-btn i {
        font-size: 22px;
    }
    
    .custom-tawk-btn:hover {
        width: 160px;
        padding-left: 15px;
    }
}

/* ===== CROSS-DEVICE LAYOUT COMPATIBILITY ===== */
html,
body {
    max-width: 100%;
    overflow-x: hidden;
}

img,
video,
iframe,
canvas {
    max-width: 100%;
    height: auto;
}

.footer .box-container .box p,
.footer .box-container .box a {
    overflow-wrap: anywhere;
}

.contact .container {
    width: min(100%, 1050px);
    margin-left: auto !important;
    margin-right: auto !important;
}

.work .button-group {
    width: min(100%, 72rem);
}

@media (max-width: 1024px) {
    section {
        padding-left: clamp(1.6rem, 4vw, 6%);
        padding-right: clamp(1.6rem, 4vw, 6%);
    }

    header {
        padding-left: clamp(1.2rem, 3vw, 6%);
        padding-right: clamp(1.2rem, 3vw, 6%);
    }

    .home {
        gap: 2.4rem;
        padding-top: 8rem;
    }

    .home .content,
    .home .image {
        flex: 1 1 100%;
    }

    .about .row {
        padding: 2.4rem 0;
    }

    .about .row .image img {
        margin: 1rem auto;
        width: min(30rem, 88vw);
    }

    .contact .container {
        margin-top: 2rem !important;
        margin-bottom: 2rem !important;
    }

    .contact .container .content {
        gap: 2rem;
    }

    .contact .content form {
        margin-right: 0 !important;
    }

    .work .box-container {
        margin-left: 0;
        margin-right: 0;
    }
}

@media (max-width: 768px) {
    .home .content {
        text-align: center;
    }

    .socials .social-icons {
        justify-content: center;
        flex-wrap: wrap;
        gap: 0.8rem;
    }

    .socials .social-icons li {
        margin-bottom: 0.8rem;
    }

    .skills .container {
        width: 100%;
    }

    .research-container,
    .blog-container,
    .technews-container {
        grid-template-columns: 1fr;
        padding: 1rem;
    }

    .contact .container {
        border-radius: 1rem;
    }
}

@media (max-width: 600px) {
    section {
        padding-left: 1.6rem;
        padding-right: 1.6rem;
    }

    .home .content h2 {
        font-size: clamp(2.8rem, 9vw, 4rem) !important;
        line-height: 1.25;
    }

    .home .content p {
        font-size: clamp(1.6rem, 4.5vw, 2rem) !important;
    }

    .work .button-group {
        width: 100%;
        gap: 0.8rem;
    }

    .work .button-group .btn {
        width: 100%;
    }

    .work .desc .btns {
        flex-wrap: wrap;
        gap: 1rem;
    }

    .work .desc .btns .btn {
        margin-right: 0;
        flex: 1 1 auto;
        text-align: center;
    }

    .contact .container {
        margin-top: 1.5rem !important;
        margin-bottom: 1.5rem !important;
    }

    .contact .container .content {
        padding: 1.8rem 1rem;
    }

    .contact form .field input,
    .contact form .message textarea {
        font-size: 1.4rem !important;
    }

    .page_404 .wrapper,
    .wrapper {
        height: min(38rem, 48vh);
        background-size: cover;
    }

    .msg h3 {
        font-size: clamp(2.6rem, 7vw, 3.6rem);
        text-align: center;
    }

    .msg p {
        text-align: center;
    }
}

