/* 
* Portfolio Custom CSS
* Tailwind is handling 90% of the layout, this file adds custom utilities,
* animations, variables, and refined glassmorphism effects.
*/

:root {
    /* Primary brand colors */
    --primary: #00ff9d;
    --primary-rgb: 0, 255, 157;
    --primary-glow: rgba(0, 255, 157, 0.4);
}

/* Smooth HTML reset for scroll */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
    /* Account for sticky navbar */
}

body {
    overflow-x: hidden;
}

/* === Typography Fixes === */
/* The typewriter cursor */
.cursor {
    display: inline-block;
    width: 2px;
    background-color: var(--primary);
    animation: blink 1s step-end infinite;
}

@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}

/* === Custom Scrollbar === */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #09090b;
    /* zinc-950 */
}

::-webkit-scrollbar-thumb {
    background: #27272a;
    /* zinc-800 */
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}

.custom-scrollbar::-webkit-scrollbar {
    width: 6px;
}

/* === Glassmorphism Utilities === */
.glass {
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.form-glass {
    background: rgba(9, 9, 11, 0.6);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

/* === Custom Animations === */

/* Floating Element Animation */
@keyframes float {
    0% {
        transform: translateY(0px);
    }

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

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

.animate-float {
    animation: float 6s ease-in-out infinite;
}


/* Hero Slide Up Animation on Load */
.slide-up-anim {
    opacity: 0;
    transform: translateY(30px);
    animation: slideUp 0.8s forwards cubic-bezier(0.2, 0.8, 0.2, 1);
}

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

/* Modal Pop Animation */
.modal-anim {
    animation: modalShow 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes modalShow {
    0% {
        opacity: 0;
        transform: scale(0.95) translateY(20px) translate3d(0, 0, 0);
    }

    100% {
        opacity: 1;
        transform: scale(1) translateY(0) translate3d(0, 0, 0);
    }
}

/* === Mobile Menu Transitions === */
.mobile-menu-active {
    display: block !important;
    animation: slideDownMenu 0.3s ease-out forwards;
}

#mobile-menu {
    z-index: 9999;
}

#typing-text {
    display: inline;
}

#typing-text+.cursor {
    display: inline;
}

.theme-toggle-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.55rem 0.85rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.05);
    color: #d4d4d8;
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.25s ease;
}

.theme-toggle-btn:hover {
    color: #ffffff;
    border-color: rgba(0, 255, 157, 0.45);
    background: rgba(0, 255, 157, 0.12);
}

body.light-mode {
    background: linear-gradient(180deg, #f5efe2 0%, #edf5ea 50%, #e9f2ef 100%);
    color: #1f2d26;
}

body.light-mode #navbar {
    background: rgba(248, 243, 233, 0.92) !important;
    border-color: rgba(19, 78, 59, 0.16) !important;
}

body.light-mode #mobile-menu {
    background: rgba(250, 245, 236, 0.98) !important;
    border-color: rgba(19, 78, 59, 0.14) !important;
}

body.light-mode .theme-toggle-btn {
    border-color: rgba(19, 78, 59, 0.24);
    background: rgba(19, 78, 59, 0.08);
    color: #134e3b;
}

body.light-mode .glass:not([id*="Modal"]):not([id*="Modal"] *):not(.project-card):not(.project-card *):not(.video-card):not(.video-card *):not(.blog-card):not(.blog-card *):not(#testimonials-grid *):not(#reviews-grid-full *) {
    background: rgba(255, 252, 244, 0.86);
    border-color: rgba(19, 78, 59, 0.16) !important;
    box-shadow: 0 8px 24px rgba(17, 24, 39, 0.08);
}

body.light-mode h1:not([id*="Modal"] *):not(.project-card *):not(.video-card *):not(.blog-card *):not(#testimonials-grid *):not(#reviews-grid-full *),
body.light-mode h2:not([id*="Modal"] *):not(.project-card *):not(.video-card *):not(.blog-card *):not(#testimonials-grid *):not(#reviews-grid-full *),
body.light-mode h3:not([id*="Modal"] *):not(.project-card *):not(.video-card *):not(.blog-card *):not(#testimonials-grid *):not(#reviews-grid-full *),
body.light-mode h4:not([id*="Modal"] *):not(.project-card *):not(.video-card *):not(.blog-card *):not(#testimonials-grid *):not(#reviews-grid-full *),
body.light-mode h5:not([id*="Modal"] *):not(.project-card *):not(.video-card *):not(.blog-card *):not(#testimonials-grid *):not(#reviews-grid-full *),
body.light-mode h6:not([id*="Modal"] *):not(.project-card *):not(.video-card *):not(.blog-card *):not(#testimonials-grid *):not(#reviews-grid-full *),
body.light-mode .text-white:not([id*="Modal"] *):not(.project-card *):not(.video-card *):not(.blog-card *):not(#testimonials-grid *):not(#reviews-grid-full *):not(pre *):not(code *) {
    color: #0f172a !important;
}

body.light-mode .text-zinc-300:not([id*="Modal"]):not([id*="Modal"] *):not(.project-card):not(.project-card *):not(.video-card):not(.video-card *):not(.blog-card):not(.blog-card *):not(#testimonials-grid *):not(#reviews-grid-full *):not(pre *):not(code *),
body.light-mode .text-zinc-400:not([id*="Modal"]):not([id*="Modal"] *):not(.project-card):not(.project-card *):not(.video-card):not(.video-card *):not(.blog-card):not(.blog-card *):not(#testimonials-grid *):not(#reviews-grid-full *):not(pre *):not(code *),
body.light-mode .text-zinc-500:not([id*="Modal"]):not([id*="Modal"] *):not(.project-card):not(.project-card *):not(.video-card):not(.video-card *):not(.blog-card):not(.blog-card *):not(#testimonials-grid *):not(#reviews-grid-full *):not(pre *):not(code *) {
    color: #3f4a46 !important;
}

body.light-mode #skills .text-zinc-600 {
    color: #4b5854;
}

body.light-mode #skills svg.fill-zinc-600 {
    fill: #4b5854;
}

body.light-mode #skills .group:hover .fa-html5 {
    color: #E34F26 !important;
}

body.light-mode #skills .group:hover .fa-css3-alt {
    color: #1572B6 !important;
}

body.light-mode #skills .group:hover .fa-js {
    color: #F7DF1E !important;
}

body.light-mode #skills .group:hover .fa-react {
    color: #61DAFB !important;
}

body.light-mode #skills .group:hover .fa-node-js {
    color: #339933 !important;
}

body.light-mode #skills .group:hover .fa-php {
    color: #777BB4 !important;
}

body.light-mode #skills .group:hover .fa-wordpress {
    color: #21759B !important;
}

body.light-mode #skills .group:hover .fa-figma {
    color: #F24E1E !important;
}

body.light-mode #skills .group:hover .skill-tailwind-icon {
    fill: #06B6D4 !important;
}

body.light-mode #skills .group:hover .skill-nextjs-icon {
    fill: #111111 !important;
}

body.light-mode [class*="bg-zinc-950"]:not([id*="Modal"]):not([id*="Modal"] *):not(.project-card):not(.project-card *):not(.video-card):not(.video-card *):not(.blog-card):not(.blog-card *):not(#testimonials-grid *):not(#reviews-grid-full *),
body.light-mode [class*="bg-zinc-900"]:not([id*="Modal"]):not([id*="Modal"] *):not(.project-card):not(.project-card *):not(.video-card):not(.video-card *):not(.blog-card):not(.blog-card *):not(#testimonials-grid *):not(#reviews-grid-full *) {
    background-color: rgba(250, 245, 236, 0.8) !important;
}

body.light-mode [class*="border-white/"]:not([id*="Modal"]):not([id*="Modal"] *):not(.project-card):not(.project-card *):not(.video-card):not(.video-card *):not(.blog-card):not(.blog-card *):not(#testimonials-grid *):not(#reviews-grid-full *) {
    border-color: rgba(19, 78, 59, 0.18) !important;
}

body.light-mode .card-3d:not([id*="Modal"]):not([id*="Modal"] *):not(.project-card):not(.project-card *):not(.video-card):not(.video-card *):not(.blog-card):not(.blog-card *):not(#testimonials-grid *):not(#reviews-grid-full *) {
    background: rgba(255, 252, 244, 0.92);
    border-color: rgba(19, 78, 59, 0.18) !important;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.1);
}

body.light-mode .theme-toggle-btn:hover {
    background: rgba(0, 255, 157, 0.14);
    border-color: rgba(0, 255, 157, 0.45);
    color: #0f172a;
}

body.light-mode .hire-cta-bg {
    box-shadow: 0 14px 32px rgba(15, 23, 42, 0.1), 0 1px 0 rgba(0, 255, 157, 0.1) inset;
}

body.light-mode #contact .form-glass {
    background: rgba(255, 251, 242, 0.9);
    border: 1px solid rgba(19, 78, 59, 0.16);
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
}

body.light-mode #contact label {
    color: #395449 !important;
}

body.light-mode #contact input,
body.light-mode #contact textarea {
    background: rgba(255, 253, 247, 0.95) !important;
    color: #1f2d26 !important;
    border-color: rgba(19, 78, 59, 0.2) !important;
}

body.light-mode #contact input::placeholder,
body.light-mode #contact textarea::placeholder {
    color: #6b7280 !important;
}

body.light-mode #contact input:focus,
body.light-mode #contact textarea:focus {
    border-color: rgba(0, 255, 157, 0.55) !important;
    box-shadow: 0 0 0 1px rgba(0, 255, 157, 0.35) !important;
}

body.light-mode #contact .group .glass {
    background: rgba(255, 251, 242, 0.92);
    border-color: rgba(19, 78, 59, 0.16) !important;
}

.project-card, .video-card, .blog-card {
    transform: perspective(1000px) rotateX(0deg) rotateY(0deg);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    will-change: transform;
}

.project-card:hover, .video-card:hover, .blog-card:hover {
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5),
        0 0 30px rgba(0, 255, 150, 0.08);
    transform: perspective(1000px) translateY(-8px);
}

.card-3d {
    position: relative;
    overflow: hidden;
    transform-style: preserve-3d;
    backface-visibility: hidden;
    z-index: 1;
}

.card-3d:hover {
    z-index: 20;
}

#projects-grid,
#projects-grid-full,
#video-grid,
#blog-grid,
#blog-grid-full {
    overflow: visible;
    padding-top: 10px;
    padding-bottom: 10px;
}

#about .grid,
#skills .grid,
#services .grid,
#testimonials #reviews-grid {
    overflow: visible;
    padding-top: 10px;
    padding-bottom: 10px;
}

@keyframes slideDownMenu {
    from {
        opacity: 0;
        transform: scaleY(0.95);
    }

    to {
        opacity: 1;
        transform: scaleY(1);
    }
}

/* === Premium Card Hover Effect === */
.premium-hover {
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.premium-hover:hover:not(.card-3d) {
    transform: translateY(-8px) scale(1.01) !important;
    border-color: rgba(0, 255, 157, 0.4) !important;
    box-shadow: 0 15px 35px -10px rgba(0, 255, 157, 0.25) !important;
    background: rgba(255, 255, 255, 0.04) !important;
}

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

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

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

.reveal-on-scroll.is-visible,
.slide-in-left.is-visible,
.slide-in-right.is-visible {
    opacity: 1;
    transform: translateY(0) translateX(0);
}

/* === Premium Avatar Animation === */
@keyframes spin-slow {
    to {
        transform: rotate(360deg);
    }
}

.animate-spin-slow {
    animation: spin-slow 15s linear infinite;
}

.animate-spin-slow-reverse {
    animation: spin-slow 28s linear infinite reverse;
}

/* === Utilities for New Sections === */
.line-clamp-1 {
    display: -webkit-box;
    -webkit-line-clamp: 1;
    line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.line-clamp-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Ensure rich-text project descriptions behave correctly with line clamp */
.project-description * {
    display: inline;
}

/* Custom Scrollbar for Modals */
.custom-scrollbar::-webkit-scrollbar {
    width: 6px;
}

.custom-scrollbar::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.02);
}

.custom-scrollbar::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}

.custom-scrollbar::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 255, 157, 0.5);
}

/* Basic Prose Styles for Blog Content */
.prose h1,
.prose h2,
.prose h3 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: white;
    font-weight: 700;
}

.prose h2 {
    font-size: 1.875rem;
}

.prose h3 {
    font-size: 1.5rem;
}

.prose p {
    margin-bottom: 1.5rem;
    color: #d4d4d8;
    line-height: 1.75;
}

.prose img {
    width: 100%;
    border-radius: 1rem;
    margin-top: 2rem;
    margin-bottom: 2rem;
}

.prose ul {
    list-style-type: disc;
    padding-left: 1.5rem;
    margin-bottom: 1.5rem;
    color: #d4d4d8;
}

.prose li {
    margin-bottom: 0.5rem;
}

.prose blockquote {
    border-left: 4px solid #00ff9d;
    padding-left: 1.5rem;
    margin-top: 2rem;
    margin-bottom: 2rem;
    font-style: italic;
    color: #c4c4cc;
}

/* === Skill Progress Bars (Updated as per Project Rules) === */
.skill-bar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 999px;
    height: 8px;
    overflow: hidden;
}

.skill-bar-fill {
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(to right, #00ff9d, #34d399);
    width: 0%;
    transition: width 1.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 0 12px rgba(0, 255, 157, 0.5);
}

/* Width for .skill-bar-fill is set via inline style by JS on scroll trigger */

/* === Service Card Icon Glow (Updated as per Project Rules) === */
.service-icon-box {
    transition: all 0.4s ease;
}

.service-card:hover .service-icon-box {
    box-shadow: 0 0 24px rgba(0, 255, 157, 0.35);
    background: rgba(0, 255, 157, 0.12) !important;
}

/* === How I Work — Step connector line === */
.process-steps {
    position: relative;
}

.process-steps::before {
    content: '';
    position: absolute;
    top: 40px;
    left: 10%;
    width: 80%;
    height: 2px;
    background: linear-gradient(to right, transparent, rgba(0, 255, 157, 0.3), transparent);
    z-index: 0;
    display: none;
}

@media (min-width: 768px) {
    .process-steps::before {
        display: block;
    }
}

/* === Hire Me CTA Banner (Updated as per Project Rules) === */
.hire-cta-bg {
    background: linear-gradient(135deg,
            rgba(0, 255, 157, 0.02) 0%,
            rgba(0, 0, 0, 0) 40%,
            rgba(0, 255, 157, 0.012) 100%);
    border: 1px solid rgba(0, 255, 157, 0.08);
    transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
    box-shadow: 0 14px 36px rgba(0, 0, 0, 0.22), 0 2px 0 rgba(0, 255, 157, 0.08) inset;
}

.hire-cta-bg:hover {
    border-color: rgba(0, 255, 157, 0.2);
    box-shadow: 0 24px 56px rgba(0, 0, 0, 0.35), 0 0 28px rgba(0, 255, 157, 0.08);
}

.hire-cta-bg::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 60% 50%, rgba(0, 255, 157, 0.035) 0%, transparent 70%);
    border-radius: inherit;
    z-index: 0;
    pointer-events: none;
}

.hire-cta-bg::after {
    content: '';
    position: absolute;
    inset: 1px;
    border-radius: inherit;
    background: linear-gradient(160deg, rgba(255, 255, 255, 0.03), transparent 35%);
    opacity: 0.9;
    pointer-events: none;
}

/* === WhatsApp Floating Pulse (Updated as per Project Rules) === */
@keyframes whatsapp-pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.6);
    }

    70% {
        box-shadow: 0 0 0 16px rgba(37, 211, 102, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

.whatsapp-pulse {
    animation: whatsapp-pulse 2s infinite;
}

.mobile-scroll-controls {
    position: fixed;
    right: 1rem;
    bottom: 6.5rem;
    z-index: 55;
    display: none;
    flex-direction: column;
    gap: 0.75rem;
}

.mobile-scroll-btn {
    width: 2.35rem;
    height: 2.35rem;
    border-radius: 999px;
    border: 1px solid rgba(0, 255, 157, 0.16);
    background: rgba(9, 9, 11, 0.42);
    color: #00ff9d;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.16);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.mobile-scroll-btn:active {
    transform: scale(0.96);
}

/* === Availability badge (Updated as per Project Rules) === */
@keyframes available-glow {

    0%,
    100% {
        box-shadow: 0 0 8px rgba(0, 255, 157, 0.3);
    }

    50% {
        box-shadow: 0 0 20px rgba(0, 255, 157, 0.6);
    }
}

.available-badge {
    animation: available-glow 3s ease-in-out infinite;
}

@media (max-width: 767px) {
    .mobile-scroll-controls {
        display: flex;
    }

    .hero-heading {
        font-size: clamp(2rem, 8vw, 3rem);
    }

    .project-card, .video-card, .blog-card, .card-3d {
        transform: none !important;
        box-shadow: none !important;
    }

    .py-24 {
        padding-top: 4.5rem !important;
        padding-bottom: 4.5rem !important;
    }

    .mb-16 {
        margin-bottom: 3rem !important;
    }

    #projects-grid,
    #projects-grid-full,
    #video-grid,
    #blog-grid,
    #blog-grid-full,
    #about .grid,
    #skills .grid,
    #services .grid,
    #testimonials #reviews-grid {
        padding-top: 0 !important;
        padding-bottom: 0 !important;
    }

    #home {
        min-height: auto;
        padding-bottom: 4rem;
    }

    #home .max-w-7xl {
        gap: 2rem !important;
    }

    #home .max-w-7xl > div:last-child {
        padding-inline: 1rem;
        margin-bottom: 0.5rem;
    }

    #home .max-w-7xl > div:last-child > div {
        width: min(78vw, 19rem) !important;
        height: min(78vw, 19rem) !important;
        margin-inline: auto;
    }

    #home #hero-profile-image {
        border-width: 6px !important;
    }

    #home .max-w-7xl > div:last-child .glass {
        padding: 0.85rem 0.95rem !important;
    }

    #home .max-w-7xl > div:last-child .absolute.-bottom-4 {
        right: 0.5rem !important;
        bottom: 0.25rem !important;
    }

    #home .max-w-7xl > div:last-child .absolute.top-10.-left-6 {
        left: 0.25rem !important;
        top: 1.25rem !important;
    }

    #home .max-w-7xl > div:last-child .absolute.-inset-4 {
        inset: -0.65rem !important;
    }

    #home .max-w-7xl > div:last-child .absolute.-inset-8 {
        inset: -1rem !important;
    }

    #home .max-w-7xl > div:last-child .absolute.-inset-12 {
        inset: -1.35rem !important;
    }

    #home .max-w-7xl > div:last-child .animate-float {
        animation: none;
    }

    #mobile-menu-list {
        align-items: center;
        text-align: center;
        padding-top: 2rem !important;
        padding-bottom: 2rem !important;
    }

    #mobile-menu-list .mobile-link {
        width: 100%;
        max-width: 16rem;
    }
}

@media (min-width: 1280px) {
    .max-w-7xl {
        max-width: 87.5rem !important;
    }

    .max-w-6xl {
        max-width: 86rem !important;
    }

    .max-w-5xl {
        max-width: 80rem !important;
    }

    .max-w-4xl {
        max-width: 72rem !important;
    }
}

footer {
    padding-top: 2.25rem !important;
    padding-bottom: 1rem !important;
}

footer .mb-12 {
    margin-bottom: 1rem !important;
}

footer .pt-8 {
    padding-top: 0.85rem !important;
}

footer .gap-6 {
    gap: 1rem !important;
}

footer .gap-4 {
    gap: 0.75rem !important;
}

@media (min-width: 1024px) {
    #home .max-w-7xl {
        grid-template-columns: minmax(0, 1.18fr) minmax(21rem, 0.98fr) !important;
        gap: 5rem !important;
    }

    #home .max-w-7xl > div:first-child {
        max-width: 42rem;
    }

    #home .hero-heading {
        font-size: clamp(3.8rem, 4.8vw, 5.35rem) !important;
        line-height: 1.02 !important;
    }

    #home .max-w-7xl > div:first-child p.max-w-lg {
        max-width: 35rem !important;
        font-size: 1.35rem;
        line-height: 1.65;
    }

    #home .max-w-7xl > div:first-child .flex.items-center.gap-6.pt-8 {
        padding-top: 2.4rem !important;
        margin-top: 0.35rem;
        width: 100%;
        max-width: 33rem;
        justify-content: flex-start;
        gap: 1.75rem !important;
    }

    #home .max-w-7xl > div:last-child > div {
        width: 31rem;
        height: 31rem;
    }
}

@media (min-width: 1280px) {
    #home .max-w-7xl {
        grid-template-columns: minmax(0, 1.22fr) minmax(24rem, 1fr) !important;
        gap: 6rem !important;
    }

    #home .max-w-7xl > div:first-child {
        max-width: 44rem;
    }

    #home .hero-heading {
        font-size: clamp(4.4rem, 4.9vw, 5.8rem) !important;
    }

    #home .max-w-7xl > div:last-child > div {
        width: 35rem;
        height: 35rem;
    }
}

.container,
main {
  max-width: 1400px;
  margin-left: auto;
  margin-right: auto;
}

/* === Social Icons Hover Border === */
footer .flex.items-center.gap-4 a.glass {
    border: 1px solid transparent;
    transition: border-color 0.3s ease, color 0.3s ease, background-color 0.3s ease;
}

footer .flex.items-center.gap-4 a.glass:hover {
    border-color: #22d3ee !important;
}

@media (max-width: 640px) {
  /* Prevent horizontal overflow */
  body { overflow-x: hidden; }
  
  /* Section padding reduction */
  section { padding-left: 1rem; padding-right: 1rem; }
  
  /* Typography scale */
  h1 { font-size: clamp(1.8rem, 6vw, 3rem); }
  h2 { font-size: clamp(1.5rem, 5vw, 2.5rem); }
  
  /* Touch target minimum */
  a, button { min-height: 44px; }
  
  /* Images */
  img { max-width: 100%; height: auto; }
  
  /* Tables */
  table { display: block; overflow-x: auto; }

  /* Process steps padding reduced on mobile */
  .process-steps > div {
    padding: 1.25rem !important;
  }

  /* Skill cards: tech stack grid - keep 2 cols on mobile */
  #skills .grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 0.75rem !important;
  }

  /* Skill icons and cards smaller on mobile */
  #skills .glass.flex.flex-col {
    padding: 1.25rem 0.75rem !important;
  }

  /* Hire CTA banner: stack buttons full-width */
  #hire-me .flex.flex-col.sm\:flex-row {
    width: 100%;
  }
  #hire-me .flex.flex-col.sm\:flex-row a {
    width: 100%;
    justify-content: center;
  }

  /* Contact grid gap reduction on mobile */
  #contact .grid.grid-cols-1.lg\:grid-cols-5 {
    gap: 2rem !important;
  }

  /* Footer nav links: smaller gap on very small screens */
  footer ul {
    gap: 0.75rem !important;
  }

  /* Reviews leave modal full width on mobile */
  #leaveReviewModal .max-w-lg {
    max-width: 100% !important;
    margin: 0 0.5rem !important;
  }
}

