@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800;900&display=swap');

:root {
    /* Modern Professional Color Scheme */
    --color-text: #e8eaed;
    --color-base: #0f1419;
    --color-base2: #1a1f2e;
    --color-brand: #6366f1;
    --color-brand-light: #818cf8;
    --color-brand-dark: #4f46e5;
    --color-accent: #ec4899;
    --color-success: #10b981;
    --color-dl: #f59e0b;
    --color-llm: #8b5cf6;
    --color-scrape: #14b8a6;
    --sidebar-width: 260px;
    --font-base: "Poppins";
}

* { box-sizing: border-box; }

body {
    background: linear-gradient(135deg, var(--color-base) 0%, var(--color-base2) 100%);
    color: var(--color-text);
    font-family: var(--font-base), sans-serif;
    line-height: 1.7;
    font-weight: 400;
}

/* Fix anchor jumps with fixed navbar */
section { scroll-margin-top: 90px; }

h1, h2, h3, h4, h5, h6 {
    color: var(--color-text);
    font-weight: 700;
    letter-spacing: -0.5px;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 {
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 600;
}

a {
    text-decoration: none;
    color: var(--color-text);
    transition: all 0.3s ease;
}

a:hover { color: var(--color-brand); }

img {
    width: 100%;
    height: auto;
}

.bg-base {
    background: linear-gradient(145deg, rgba(26, 31, 46, 0.95) 0%, rgba(15, 20, 25, 0.95) 100%);
    backdrop-filter: blur(10px);
}

.text-brand {
    color: var(--color-brand);
    font-weight: 600;
}

.lead {
    font-size: 1.125rem;
    line-height: 1.8;
    opacity: 0.9;
}

/* Full Height Section */
.full-height {
    min-height: 100vh;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-top: 80px;
    padding-bottom: 80px;
}

/* Shadow Effects */
.shadow-effect {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(99, 102, 241, 0.1);
}

.shadow-effect:hover {
    box-shadow: 0 20px 40px rgba(99, 102, 241, 0.3);
    transform: translateY(-5px);
    border-color: rgba(99, 102, 241, 0.3);
}

/* Icon Box */
.iconbox {
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    background: linear-gradient(135deg, var(--color-brand) 0%, var(--color-brand-dark) 100%);
    color: #fff;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(99, 102, 241, 0.3);
}

/* NAVBAR */
.navbar {
    background: linear-gradient(180deg, rgba(15, 20, 25, 0.98) 0%, rgba(26, 31, 46, 0.98) 100%);
    backdrop-filter: blur(20px);
    border-right: 1px solid rgba(99, 102, 241, 0.1);
}

.navbar .nav-link {
    font-weight: 600;
    text-transform: uppercase;
    color: #fff;
    transition: all 0.3s ease;
    padding: 0.75rem 1rem;
    margin: 0.25rem 0;
    border-radius: 8px;
    letter-spacing: 1px;
    font-size: 0.875rem;
}

.navbar .nav-link.active,
.navbar .nav-link:hover {
    color: var(--color-brand);
    background: rgba(99, 102, 241, 0.1);
}

/* Buttons */
.btn-hover {
    display: inline-block;
    font-size: 16px;
    font-weight: 600;
    color: #fff;
    cursor: pointer;
    padding: 14px 32px;
    text-align: center;
    border: 2px solid var(--color-brand);
    border-radius: 50px;
    background: linear-gradient(135deg, var(--color-brand) 0%, var(--color-brand-dark) 100%);
    line-height: 1;
    transition: all 0.4s ease;
    box-shadow: 0 10px 25px rgba(99, 102, 241, 0.3);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-hover:hover {
    color: #fff;
    background: linear-gradient(135deg, var(--color-brand-dark) 0%, var(--color-brand) 100%);
    transform: translateY(-2px);
    box-shadow: 0 15px 35px rgba(99, 102, 241, 0.4);
}

/* Accessibility focus */
a:focus-visible,
button:focus-visible,
.btn-hover:focus-visible {
    outline: 3px solid rgba(99, 102, 241, 0.7);
    outline-offset: 3px;
}

/* PROJECT FILTERS */
.project-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    align-items: center;
}

.filter-btn {
    background: rgba(99, 102, 241, 0.1);
    border: 2px solid rgba(99, 102, 241, 0.2);
    color: var(--color-text);
    padding: 12px 24px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.filter-btn i { font-size: 1.1rem; }

.filter-btn:hover {
    background: rgba(99, 102, 241, 0.2);
    border-color: var(--color-brand);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(99, 102, 241, 0.3);
}

.filter-btn.active {
    background: linear-gradient(135deg, var(--color-brand) 0%, var(--color-brand-dark) 100%);
    border-color: var(--color-brand);
    color: #fff;
    box-shadow: 0 10px 25px rgba(99, 102, 241, 0.4);
}

/* Mobile responsive filters */
@media (max-width: 576px) {
    .filter-btn {
        padding: 10px 18px;
        font-size: 0.8rem;
        flex: 1 1 calc(50% - 0.5rem);
        justify-content: center;
        min-width: 150px;
    }
    .filter-btn i { font-size: 1rem; }
}

/* PROJECT CATEGORY BADGES */
.project-category {
    display: flex;
    align-items: center;
}

.badge-custom {
    display: inline-block;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: linear-gradient(135deg, var(--color-brand) 0%, var(--color-brand-dark) 100%);
    color: #fff;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.badge-custom.badge-dl {
    background: linear-gradient(135deg, var(--color-dl) 0%, #ea580c 100%);
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
}

.badge-custom.badge-llm {
    background: linear-gradient(135deg, var(--color-llm) 0%, #7c3aed 100%);
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.3);
}

.badge-custom.badge-scrape {
    background: linear-gradient(135deg, var(--color-scrape) 0%, #0d9488 100%);
    box-shadow: 0 4px 12px rgba(20, 184, 166, 0.3);
}

/* PROJECT ITEMS */
.project-item {
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 1;
    transform: scale(1);
}

/* New filtering classes used by JS (safe for grid) */
.project-item.is-fading {
    opacity: 0;
    transform: scale(0.96);
    pointer-events: none;
}

.project-item.is-hidden {
    display: none !important;
}

/* Hidden due to Show More/Less */
.project-item.is-collapsed {
    display: none !important;
}

/* PROJECT COUNT */
.project-count-text {
    font-size: 1.1rem;
    color: var(--color-text);
    opacity: 0.8;
}

/* Link Custom Underline */
.link-custom {
    font-weight: 600;
    color: var(--color-brand);
    position: relative;
    font-size: 1rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.link-custom i { transition: transform 0.3s ease; }

.link-custom:hover i { transform: translateX(5px); }

.link-custom::after {
    content: "";
    width: 0%;
    height: 2px;
    background: linear-gradient(90deg, var(--color-brand) 0%, var(--color-accent) 100%);
    position: absolute;
    left: 0;
    bottom: -4px;
    transition: all 0.4s ease;
}

.link-custom:hover::after {
    width: calc(100% - 25px);
}

/* Card Hover Effects */
.card-custom {
    background: linear-gradient(145deg, rgba(26, 31, 46, 0.95) 0%, rgba(15, 20, 25, 0.95) 100%);
    border: 1px solid rgba(99, 102, 241, 0.1);
    transition: all 0.4s ease;
}

.card-custom .card-custom-image {
    overflow: hidden;
    border-radius: 16px;
}

.card-custom .card-custom-image img { transition: all 0.5s ease; }

.card-custom:hover .card-custom-image img { transform: scale(1.15); }

/* Social Icons */
.social-icons a {
    width: 50px;
    height: 50px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--color-brand) 0%, var(--color-brand-dark) 100%);
    border-radius: 50%;
    font-size: 22px;
    color: #fff;
    transition: all 0.3s ease;
}

.social-icons a:hover {
    background: linear-gradient(135deg, var(--color-accent) 0%, var(--color-brand) 100%);
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 10px 25px rgba(99, 102, 241, 0.4);
}

/* Responsive Adjustments */
@media (min-width: 992px) {
    .navbar {
        min-height: 100vh;
        width: var(--sidebar-width);
        position: fixed;
        top: 0;
        left: 0;
    }

    #content-wrapper { padding-left: var(--sidebar-width); }
}

/* Rotating Typewriter Effect (single definition, responsive) */
.text-rotate {
    display: inline-block;
    max-width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    border-right: 3px solid var(--color-brand);
    animation: blink 0.7s steps(1) infinite;
    color: var(--color-brand);
}

@keyframes blink {
    0%, 100% { border-color: transparent; }
    50% { border-color: var(--color-brand); }
}

/* Card Layout Enhancements */
.row.gy-4 > [class*="col-"] { display: flex; }

.skills, .card-custom {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.card-custom-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.card-custom-content p { flex-grow: 1; }

/* CTA Buttons Layout */
.cta-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.cta-buttons .btn-hover { min-width: 200px; }

@media (max-width: 576px) {
    .cta-buttons .btn-hover {
        flex: 1 1 100%;
        min-width: 0;
    }
}

/* Section Controls */
.project-section .controls,
.skills-section .controls {
    text-align: center;
}

.show-more-btn { margin-top: 2rem; }

/* Skills Visibility */
.skills-section .skills-list > [class*="col-"] { display: none; }
.skills-section .skills-list > [class*="col-"]:nth-child(-n+6) { display: flex; }
.skills-section.expanded .skills-list > [class*="col-"] { display: flex; }

/* Enhanced Profile Image */
.profile-wrap {
    width: 220px;
    aspect-ratio: 1 / 1;
    position: relative;
    margin: 0 auto;
    z-index: 1;
    perspective: 1000px;
    filter: drop-shadow(0 20px 40px rgba(99, 102, 241, 0.3));
    animation: float 6s ease-in-out infinite; /* moved here */
}

.profile-frame {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 24px;
    overflow: hidden;
    transform-style: preserve-3d;
    transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
}

/* Dynamic Gradient Border */
.profile-frame::before {
    content: "";
    position: absolute;
    inset: -4px;
    border-radius: 28px;
    background: linear-gradient(
        45deg,
        var(--color-brand),
        var(--color-accent),
        var(--color-brand-light),
        var(--color-brand)
    );
    background-size: 300% 300%;
    animation: gradientShift 6s ease infinite;
    z-index: -1;
    filter: blur(10px);
    opacity: 0.8;
}

/* Inner Glow */
.profile-frame::after {
    content: "";
    position: absolute;
    inset: 4px;
    border-radius: 20px;
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.1) 0%,
        rgba(0, 0, 0, 0.2) 100%
    );
    z-index: 0;
}

.profile-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 20px;
    position: relative;
    z-index: 1;
    transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
    filter: grayscale(10%) contrast(105%);
}

/* Hover Effects */
@media (hover: hover) and (pointer: fine) {
    .profile-frame:hover {
        transform: perspective(1000px) rotateX(5deg) rotateY(5deg) translateY(-10px) scale(1.05);
        box-shadow: 0 35px 60px rgba(99, 102, 241, 0.5);
    }

    .profile-frame:hover::before {
        animation-duration: 3s;
        filter: blur(12px);
        opacity: 1;
    }

    .profile-frame:hover .profile-photo {
        transform: scale(1.08);
        filter: grayscale(0%) contrast(110%);
    }
}

/* Floating Animation */
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* Gradient Animation */
@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Responsive Profile Sizing */
@media (max-width: 575px) {
    .profile-wrap {
        width: 180px;
        margin-bottom: 2rem;
    }
}

@media (min-width: 576px) and (max-width: 767px) {
    .profile-wrap { width: 200px; }
}

@media (min-width: 768px) and (max-width: 991px) {
    .profile-wrap { width: 240px; }
}

@media (min-width: 992px) {
    .navbar .profile-wrap {
        width: 200px;
        margin-top: 1.5rem;
        margin-bottom: 2rem;
    }
}

@media (min-width: 1200px) {
    .navbar .profile-wrap { width: 220px; }
}

/* Form Styles */
.form-control {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(99, 102, 241, 0.2);
    color: var(--color-text);
    padding: 12px 20px;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.form-control:focus {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--color-brand);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
    color: var(--color-text);
    outline: none;
}

.form-control::placeholder {
    color: rgba(232, 234, 237, 0.5);
}

/* =============================================
   MODERN FOOTER REDESIGN
============================================= */

.footer-modern {
    background: linear-gradient(180deg, rgba(15, 20, 25, 0.98) 0%, rgba(10, 15, 20, 1) 100%);
    position: relative;
    overflow: hidden;
    border-top: 2px solid rgba(99, 102, 241, 0.2);
    margin-top: 5rem;
}

.footer-modern::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--color-brand), transparent);
}

/* Footer About Section */
.footer-about .footer-logo {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.footer-about .logo-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--color-brand) 0%, var(--color-brand-dark) 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: #fff;
    box-shadow: 0 8px 20px rgba(99, 102, 241, 0.3);
}

.footer-about h4 {
    color: var(--color-text);
    font-size: 1.25rem;
    font-weight: 700;
}

.footer-description {
    color: rgba(232, 234, 237, 0.7);
    font-size: 0.938rem;
    line-height: 1.7;
    margin-top: 1rem;
}

/* Social Icons in Footer */
.social-icons-footer {
    display: flex;
    gap: 0.75rem;
}

.social-icons-footer a {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(99, 102, 241, 0.1);
    border: 2px solid rgba(99, 102, 241, 0.2);
    border-radius: 10px;
    color: var(--color-brand);
    font-size: 1.4rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.social-icons-footer a:hover {
    background: linear-gradient(135deg, var(--color-brand) 0%, var(--color-brand-dark) 100%);
    border-color: var(--color-brand);
    color: #fff;
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(99, 102, 241, 0.4);
}

/* Footer Titles */
.footer-title {
    color: var(--color-text);
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.75rem;
}

.footer-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 40px;
    height: 3px;
    background: linear-gradient(90deg, var(--color-brand), transparent);
    border-radius: 2px;
}

/* Footer Menu */
.footer-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-menu li {
    margin-bottom: 0.75rem;
}

.footer-menu a {
    color: rgba(232, 234, 237, 0.7);
    font-size: 0.938rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    text-decoration: none;
}

.footer-menu a i {
    font-size: 0.875rem;
    color: var(--color-brand);
    transition: transform 0.3s ease;
}

.footer-menu a:hover {
    color: var(--color-brand);
    transform: translateX(5px);
}

.footer-menu a:hover i {
    transform: translateX(3px);
}

/* Footer Contact List */
.footer-contact-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-contact-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 1rem;
    color: rgba(232, 234, 237, 0.7);
    font-size: 0.938rem;
}

.footer-contact-list i {
    font-size: 1.25rem;
    color: var(--color-brand);
    margin-top: 2px;
    flex-shrink: 0;
}

.footer-contact-list a {
    color: rgba(232, 234, 237, 0.7);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-contact-list a:hover {
    color: var(--color-brand);
}

/* Footer Badge */
.footer-badge .badge-status {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: 20px;
    color: #10b981;
    font-size: 0.813rem;
    font-weight: 600;
}

.footer-badge .badge-status i {
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

/* Footer Divider */
.footer-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(99, 102, 241, 0.3), transparent);
    margin: 2rem 0;
}

/* Footer Bottom */
.footer-bottom {
    padding-top: 1.5rem;
}

.footer-copyright {
    color: rgba(232, 234, 237, 0.6);
    font-size: 0.875rem;
}

.footer-copyright strong {
    color: var(--color-brand);
    font-weight: 600;
}

.footer-credits {
    color: rgba(232, 234, 237, 0.6);
    font-size: 0.875rem;
}

.heart-icon {
    color: #ef4444;
    animation: heartbeat 1.5s ease-in-out infinite;
}

@keyframes heartbeat {
    0%, 100% { transform: scale(1); }
    10%, 30% { transform: scale(1.1); }
    20%, 40% { transform: scale(1); }
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--color-brand) 0%, var(--color-brand-dark) 100%);
    border: none;
    border-radius: 12px;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 8px 20px rgba(99, 102, 241, 0.3);
    z-index: 1000;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(99, 102, 241, 0.5);
}

/* Footer Background Shapes */
.footer-bg-shapes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
    pointer-events: none;
}

.footer-bg-shapes .shape {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.1) 0%, transparent 70%);
    animation: float 20s ease-in-out infinite;
}

.shape-1 {
    width: 300px;
    height: 300px;
    top: -150px;
    left: -100px;
}

.shape-2 {
    width: 200px;
    height: 200px;
    bottom: -100px;
    right: 10%;
    animation-delay: -5s;
}

.shape-3 {
    width: 150px;
    height: 150px;
    top: 50%;
    right: -75px;
    animation-delay: -10s;
}

/* Ensure footer content is above shapes */
.footer-modern .container {
    position: relative;
    z-index: 1;
}

/* Responsive Footer */
@media (max-width: 991px) {
    .footer-title {
        margin-top: 1.5rem;
    }
    
    .footer-about .footer-logo {
        justify-content: center;
        text-align: center;
    }
    
    .footer-description {
        text-align: center;
    }
    
    .social-icons-footer {
        justify-content: center;
    }
}

@media (max-width: 767px) {
    .footer-modern {
        padding: 3rem 0 2rem;
    }
    
    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
    }
    
    .footer-links,
    .footer-contact {
        text-align: center;
    }
    
    .footer-menu a,
    .footer-contact-list li {
        justify-content: center;
    }
    
    .footer-badge {
        text-align: center;
    }
}


/* ======================================
   CONTACT FORM REDESIGN
   ====================================== */

.contact-form-wrapper {
    position: relative;
    overflow: hidden;
}

.contact-form-wrapper::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--color-brand) 0%, var(--color-accent) 100%);
    border-radius: 16px 16px 0 0;
}

.contact-form {
    position: relative;
    z-index: 2;
}

/* Form Group Modern */
.form-group-modern {
    position: relative;
}

.form-label {
    display: block;
    color: var(--color-text);
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 0.75rem;
    letter-spacing: 0.3px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.form-label i {
    color: var(--color-brand);
    font-size: 1.2rem;
}

/* Form Control Modern */
.form-control-modern {
    width: 100%;
    background: rgba(255, 255, 255, 0.03);
    border: 2px solid rgba(99, 102, 241, 0.15);
    color: var(--color-text);
    padding: 14px 18px;
    border-radius: 12px;
    font-size: 0.95rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: var(--font-base), sans-serif;
    line-height: 1.5;
}

.form-control-modern:focus {
    background: rgba(255, 255, 255, 0.06);
    border-color: var(--color-brand);
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
    outline: none;
    transform: translateY(-2px);
}

.form-control-modern::placeholder {
    color: rgba(232, 234, 237, 0.4);
    font-size: 0.9rem;
}

textarea.form-control-modern {
    resize: vertical;
    min-height: 120px;
}

/* Submit Button Modern */
.btn-submit-modern {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 16px 32px;
    background: linear-gradient(135deg, var(--color-brand) 0%, var(--color-brand-dark) 100%);
    border: 2px solid transparent;
    border-radius: 12px;
    color: #fff;
    font-size: 1.05rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 10px 30px rgba(99, 102, 241, 0.3);
    position: relative;
    overflow: hidden;
}

.btn-submit-modern::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.btn-submit-modern:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(99, 102, 241, 0.5);
    border-color: var(--color-brand-light);
}

.btn-submit-modern:hover::before {
    left: 100%;
}

.btn-submit-modern:active {
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(99, 102, 241, 0.4);
}

.btn-submit-modern i {
    font-size: 1.3rem;
    transition: transform 0.3s ease;
}

.btn-submit-modern:hover i {
    transform: translateX(5px);
}

/* Contact Info Cards */
.contact-info-card {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(99, 102, 241, 0.1);
    height: 100%;
}

.contact-info-card:hover {
    transform: translateY(-8px);
    border-color: rgba(99, 102, 241, 0.3);
}

.contact-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.2) 0%, rgba(99, 102, 241, 0.05) 100%);
    border-radius: 16px;
    border: 2px solid rgba(99, 102, 241, 0.2);
    transition: all 0.3s ease;
}

.contact-info-card:hover .contact-icon {
    background: linear-gradient(135deg, var(--color-brand) 0%, var(--color-brand-dark) 100%);
    border-color: var(--color-brand);
    box-shadow: 0 10px 25px rgba(99, 102, 241, 0.4);
}

.contact-icon i {
    font-size: 2rem;
    color: var(--color-brand);
    transition: all 0.3s ease;
}

.contact-info-card:hover .contact-icon i {
    color: #fff;
    transform: scale(1.1);
}

.contact-info-card h5 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: var(--color-text);
}

.contact-info-card .text-muted {
    color: rgba(232, 234, 237, 0.6) !important;
    font-size: 0.9rem;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .form-label {
        font-size: 0.85rem;
    }

    .form-control-modern {
        padding: 12px 16px;
        font-size: 0.9rem;
    }

    .btn-submit-modern {
        padding: 14px 24px;
        font-size: 0.95rem;
    }

    .contact-icon {
        width: 60px;
        height: 60px;
    }

    .contact-icon i {
        font-size: 1.75rem;
    }
}

/* Form Validation States */
.form-control-modern:invalid:not(:placeholder-shown) {
    border-color: rgba(239, 68, 68, 0.5);
}

.form-control-modern:valid:not(:placeholder-shown) {
    border-color: rgba(16, 185, 129, 0.5);
}

/* Loading State for Submit Button */
.btn-submit-modern:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* ===========================================================================================
   CUSTOM ADDITIONS - ABOUT SECTION REDESIGN & ENHANCEMENTS
   ======================================================================================== */

/* ===== ABOUT SECTION REDESIGN ===== */
.about-section {
    padding: 5rem 0;
    position: relative;
}

/* Header Row - Contains Title and Resume Button */
.about__header-row {
    position: relative;
    margin-bottom: 3rem;
}

.about__header-row h2 {
    margin-bottom: 0;
}

/* Resume Button - Top Right Position */
.btn-resume-topright {
    position: absolute;
    top: 123px;
    right: 25px;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, var(--color-brand) 0%, var(--color-brand-dark) 100%);
    color: #fff;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
    z-index: 10;
}

.btn-resume-topright i {
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

.btn-resume-topright:hover {
    background: linear-gradient(135deg, var(--color-brand-dark) 0%, var(--color-brand) 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.5);
    color: #fff;
}

.btn-resume-topright:hover i {
    transform: translateY(2px);
}

.about__content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    margin-top: 3rem;
}

/* Profile Card */
.about__profile-card {
    background: linear-gradient(145deg, rgba(26, 31, 46, 0.95) 0%, rgba(15, 20, 25, 0.95) 100%);
    padding: 2.5rem;
    border-radius: 1.5rem;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(99, 102, 241, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.about__profile-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 32px rgba(99, 102, 241, 0.3);
}

.about__profile-header {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.about__avatar {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--color-brand), var(--color-brand-dark));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 8px 20px rgba(99, 102, 241, 0.4);
}

.about__avatar-text {
    font-size: 1.75rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: 1px;
}

.about__name {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: 0.25rem;
}

.about__title {
    font-size: 1rem;
    color: var(--color-brand);
    font-weight: 600;
}

.about__description {
    font-size: 1rem;
    line-height: 1.8;
    color: rgba(232, 234, 237, 0.85);
    margin-bottom: 2rem;
}

/* Highlights */
.about__highlights {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.about__highlight-item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    padding: 1rem;
    background: rgba(99, 102, 241, 0.05);
    border-radius: 0.75rem;
    border-left: 3px solid var(--color-brand);
    transition: all 0.3s ease;
}

.about__highlight-item:hover {
    background: rgba(99, 102, 241, 0.1);
    transform: translateX(5px);
    border-left-color: var(--color-brand-light);
}

.about__highlight-icon {
    font-size: 1.5rem;
    color: var(--color-brand);
    flex-shrink: 0;
    margin-top: 0.25rem;
}

.about__highlight-label {
    display: block;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: rgba(232, 234, 237, 0.6);
    margin-bottom: 0.25rem;
    font-weight: 600;
}

.about__highlight-text {
    font-size: 0.938rem;
    color: var(--color-text);
    font-weight: 500;
    line-height: 1.4;
    margin: 0;
}

/* Expertise Section */
.about__expertise {
    background: linear-gradient(145deg, rgba(26, 31, 46, 0.95) 0%, rgba(15, 20, 25, 0.95) 100%);
    padding: 2.5rem;
    border-radius: 1.5rem;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(99, 102, 241, 0.2);
}

.about__expertise-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: 2rem;
    position: relative;
    padding-bottom: 0.75rem;
}

.about__expertise-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--color-brand), transparent);
    border-radius: 2px;
}

.about__expertise-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

.about__expertise-card {
    padding: 2rem 1.75rem 1.75rem;
    background: rgba(99, 102, 241, 0.05);
    border-radius: 1rem;
    border-left: 4px solid var(--color-brand);
    transition: all 0.3s ease;
    position: relative;
}

.about__expertise-card:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.2);
    border-left-color: var(--color-brand-light);
    background: rgba(99, 102, 241, 0.1);
}

/* Icon Box inside cards */
.about__card-icon-box {
    width: 60px;
    height: 60px;
    background: rgba(99, 102, 241, 0.15);
    border: 2px solid rgba(99, 102, 241, 0.3);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
    transition: all 0.3s ease;
}

.about__expertise-card:hover .about__card-icon-box {
    background: rgba(99, 102, 241, 0.25);
    border-color: var(--color-brand);
    transform: scale(1.05);
}

.about__card-icon-box i {
    font-size: 1.75rem;
    color: var(--color-brand);
}

.about__expertise-card h4 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: 0.75rem;
}

.about__expertise-card p {
    font-size: 0.938rem;
    line-height: 1.6;
    color: rgba(232, 234, 237, 0.8);
    margin: 0;
}

/* CTA */
.about__cta {
    text-align: center;
    margin-top: 3rem;
    padding: 2rem;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(99, 102, 241, 0.05));
    border-radius: 1.5rem;
    border: 1px solid rgba(99, 102, 241, 0.2);
}

.about__cta-text {
    font-size: 1.125rem;
    color: var(--color-text);
    margin-bottom: 1.5rem;
    font-weight: 500;
}

.about__cta-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2.5rem;
    transition: all 0.3s ease;
}

.about__cta-button:hover {
    transform: translateY(-3px);
}

/* ===== CONTACT CARD LINKS STYLING ===== */
.contact-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
    transition: all 0.3s ease;
}

.contact-card-link:hover {
    color: inherit;
    transform: translateY(-5px);
}

.contact-card-link:hover .contact-info-card {
    border-color: var(--color-brand);
    box-shadow: 0 12px 32px rgba(99, 102, 241, 0.4);
}

.contact-card-link:hover .contact-icon {
    background: linear-gradient(135deg, var(--color-brand), var(--color-brand-dark));
    box-shadow: 0 8px 20px rgba(99, 102, 241, 0.5);
}

.contact-card-link:hover .contact-icon i {
    color: #fff;
    transform: scale(1.1);
}

.contact-card-link:hover h5 {
    color: var(--color-brand);
}

.contact-info-card {
    cursor: pointer;
}

/* ===== RESPONSIVE DESIGN ===== */
@media screen and (min-width: 768px) {
    .about__content {
        grid-template-columns: 1fr;
    }

    .about__expertise-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media screen and (min-width: 1024px) {
    .about__expertise-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media screen and (max-width: 768px) {
    .about__header-row {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 1.5rem;
    }

    .btn-resume-topright {
        position: static;
        width: auto;
        min-width: 200px;
        justify-content: center;
    }

    .about__header-row h2 {
        margin-bottom: 0;
    }
}

@media screen and (max-width: 576px) {
    .about__profile-header {
        flex-direction: column;
        text-align: center;
    }

    .about__avatar {
        width: 70px;
        height: 70px;
    }

    .about__name {
        font-size: 1.5rem;
    }

    .about__card-icon-box {
        width: 50px;
        height: 50px;
    }

    .about__card-icon-box i {
        font-size: 1.5rem;
    }

    .about__expertise-card h4 {
        font-size: 1.125rem;
    }

    .btn-resume-topright {
        width: 100%;
        max-width: 280px;
    }
}


/* =============================================
   CONTACT FORM MODAL POPUP
   ============================================= */

.form-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    animation: fadeIn 0.3s ease;
}

.form-modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

.form-modal-content {
    background: linear-gradient(145deg, rgba(26, 31, 46, 0.98) 0%, rgba(15, 20, 25, 0.98) 100%);
    padding: 3rem 2.5rem;
    border-radius: 20px;
    text-align: center;
    max-width: 500px;
    width: 90%;
    border: 2px solid rgba(99, 102, 241, 0.3);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    animation: slideUp 0.4s ease;
}

.form-modal-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
}

.form-modal-icon.success {
    background: linear-gradient(135deg, #10b981, #059669);
    box-shadow: 0 10px 30px rgba(16, 185, 129, 0.4);
}

.form-modal-icon.success::before {
    content: "\2713";
    color: #fff;
}

.form-modal-icon.error {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    box-shadow: 0 10px 30px rgba(239, 68, 68, 0.4);
}

.form-modal-icon.error::before {
    content: "\2715";
    color: #fff;
}

.form-modal-content h3 {
    font-size: 1.75rem;
    color: var(--color-text);
    margin-bottom: 1rem;
    font-weight: 700;
}

.form-modal-content p {
    font-size: 1rem;
    color: rgba(232, 234, 237, 0.8);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.btn-submit-modern.loading {
    pointer-events: none;
    opacity: 0.7;
}

.btn-submit-modern.loading .btn-text::after {
    content: "";
    display: inline-block;
    width: 14px;
    height: 14px;
    margin-left: 10px;
    border: 2px solid #fff;
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ==========================================
   MOBILE RESPONSIVE ENHANCEMENTS
   ========================================== */

/* Mobile Header */
.mobile-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: linear-gradient(180deg, rgba(15, 20, 25, 0.98) 0%, rgba(26, 31, 46, 0.98) 100%);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(99, 102, 241, 0.2);
    z-index: 1001;
    padding: 0 1rem;
}

.mobile-header .d-flex {
    display: flex !important;
    align-items: center !important;
}

.mobile-header .btn-back,
.mobile-header .navbar-brand,
.mobile-header .navbar-toggler-mobile {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* Back button specific styling */
.mobile-header .btn-back {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: rgba(99, 102, 241, 0.1);
    border: 2px solid rgba(99, 102, 241, 0.2);
    color: var(--color-brand);
}

.mobile-header .btn-back i {
    font-size: 1.5rem;
    line-height: 1;
    display: flex;
    align-items: center;
}

/* Universal icon alignment fix */
.bx, .bi, .la, .fa {
    vertical-align: middle !important;
    display: inline-flex !important;
    align-items: center !important;
}

/* Navbar Brand */
.navbar-brand {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-brand);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Hamburger Menu Button */
.navbar-toggler-mobile {
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    width: 40px;
    height: 40px;
    background: transparent;
    border: 2px solid var(--color-brand);
    border-radius: 8px;
    cursor: pointer;
    padding: 8px;
    transition: all 0.3s ease;
}

.navbar-toggler-mobile span {
    width: 100%;
    height: 3px;
    background: var(--color-brand);
    border-radius: 3px;
    transition: all 0.3s ease;
}

.navbar-toggler-mobile:hover {
    background: rgba(99, 102, 241, 0.1);
}

/* Hamburger Animation */
.navbar-toggler-mobile.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.navbar-toggler-mobile.active span:nth-child(2) {
    opacity: 0;
}

.navbar-toggler-mobile.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* Mobile Navigation Overlay */
@media (max-width: 991px) {
    .navbar {
        position: fixed;
        top: 0;
        left: -100%;
        width: 280px;
        height: 100vh;
        transition: left 0.3s ease;
        z-index: 1000;
        overflow-y: auto;
    }

    .navbar.mobile-menu-active {
        left: 0;
        box-shadow: 2px 0 15px rgba(0, 0, 0, 0.3);
    }

    #content-wrapper {
        padding-left: 0 !important;
        padding-top: 70px;
    }

    /* Overlay Backdrop */
    .navbar-backdrop {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.7);
        z-index: 999;
    }

    .navbar-backdrop.active {
        display: block;
    }
}

/* Typography Responsive Adjustments */
@media (max-width: 768px) {
    h1 { font-size: 2rem !important; }
    h2 { font-size: 1.75rem !important; }
    h3 { font-size: 1.5rem !important; }
    h4 { font-size: 1.25rem !important; }
    h5 { font-size: 1.1rem !important; }

    .lead {
        font-size: 1rem !important;
        line-height: 1.7;
    }

    .full-height {
        min-height: auto;
        padding-top: 100px;
        padding-bottom: 60px;
    }

    .row.gy-4 {
        row-gap: 1.5rem !important;
    }

    .row.gy-5 {
        row-gap: 2rem !important;
    }
}

/* Small Mobile Devices */
@media (max-width: 576px) {
    h1 { font-size: 1.75rem !important; }
    h2 { font-size: 1.5rem !important; }
    h3 { font-size: 1.25rem !important; }

    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .btn-hover {
        padding: 12px 24px;
        font-size: 14px;
        width: 100%;
        max-width: 100%;
    }

    .cta-buttons {
        flex-direction: column;
        gap: 0.75rem;
    }

    .iconbox {
        width: 60px;
        height: 60px;
        font-size: 28px;
    }

    .profile-wrap {
        width: 150px !important;
        margin-bottom: 1.5rem;
    }

    .card-custom {
        margin-bottom: 1.5rem;
    }

    .skills {
        padding: 1.5rem;
    }

    .social-icons a {
        width: 45px;
        height: 45px;
        font-size: 20px;
    }

    /* Project Filters Mobile */
    .project-filters {
        gap: 0.5rem;
        padding: 0 0.5rem;
    }

    /* Form Improvements - Prevents zoom on iOS */
    .form-control {
        font-size: 16px;
        padding: 14px 18px;
    }

    .contact-form-wrapper {
        padding: 1.5rem;
    }
}

/* Extra Small Devices */
@media (max-width: 375px) {
    h1 { font-size: 1.5rem !important; }
    h2 { font-size: 1.35rem !important; }

    .navbar-toggler-mobile {
        width: 35px;
        height: 35px;
    }

    .social-icons a {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }

    .btn-hover {
        padding: 10px 20px;
        font-size: 13px;
    }
}

/* Landscape Mobile Orientation */
@media (max-width: 991px) and (orientation: landscape) {
    .full-height {
        min-height: auto;
        padding-top: 80px;
        padding-bottom: 40px;
    }
}

/* Touch Device Optimizations */
@media (hover: none) and (pointer: coarse) {
    .btn-hover,
    .filter-btn,
    .link-custom {
        -webkit-tap-highlight-color: rgba(99, 102, 241, 0.2);
    }

    .navbar .nav-link {
        padding: 1rem 1.25rem;
        font-size: 1rem;
    }
}

/* Prevent Horizontal Scroll */
body {
    overflow-x: hidden;
}

html {
    overflow-x: hidden;
}

/* Responsive Images */
img {
    max-width: 100%;
    height: auto;
}

/* Mobile Footer Adjustments */
@media (max-width: 767px) {
    .footer-modern {
        padding: 3rem 0 2rem;
    }

    .footer-title {
        font-size: 1rem;
        margin-top: 2rem;
    }

    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
        font-size: 1.25rem;
    }

    .footer-links,
    .footer-contact {
        text-align: center;
    }

    .footer-menu a,
    .footer-contact-list li {
        justify-content: center;
    }
}
