/* Custom Styles for Portfolio - Using Tailwind CSS */
body {
    font-family: 'Inter', sans-serif;
}

/* Custom Gradients */
.red-gradient {
    background: linear-gradient(135deg, #8B0000 0%, #DC143C 50%, #B22222 100%);
}

/* ── Hero Section ── */
.hero-bg {
    background: radial-gradient(ellipse at 60% 40%, #7f0000 0%, #1a0000 60%, #0d0d0d 100%);
}

.hero-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    pointer-events: none;
    z-index: 0;
}
.hero-blob-1 {
    width: 500px; height: 500px;
    background: rgba(220, 20, 60, 0.25);
    top: -100px; left: -100px;
}
.hero-blob-2 {
    width: 350px; height: 350px;
    background: rgba(139, 0, 0, 0.3);
    bottom: -80px; right: 10%;
}
.hero-blob-3 {
    width: 200px; height: 200px;
    background: rgba(255, 80, 80, 0.12);
    top: 40%; right: 5%;
}

.hero-badge {
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.12);
    backdrop-filter: blur(10px);
    padding: 6px 16px;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 500;
    color: rgba(255,255,255,0.75);
    letter-spacing: 0.05em;
}

.badge-dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: #22c55e;
    box-shadow: 0 0 6px #22c55e;
    animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(1.3); }
}

.hero-title-gradient {
    background: linear-gradient(135deg, #ffffff 0%, #ffb3b3 60%, #ff4444 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-btn-primary {
    display: inline-flex;
    align-items: center;
    background: linear-gradient(135deg, #dc2626, #b91c1c);
    color: #fff;
    font-weight: 600;
    font-size: 0.9rem;
    padding: 12px 28px;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(220,38,38,0.4);
    transition: all 0.3s ease;
    letter-spacing: 0.03em;
}
.hero-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(220,38,38,0.55);
    background: linear-gradient(135deg, #ef4444, #dc2626);
}

.hero-btn-secondary {
    display: inline-flex;
    align-items: center;
    background: rgba(255,255,255,0.06);
    color: #fff;
    font-weight: 600;
    font-size: 0.9rem;
    padding: 12px 28px;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.15);
    backdrop-filter: blur(8px);
    transition: all 0.3s ease;
    letter-spacing: 0.03em;
    text-decoration: none;
}
.hero-btn-secondary:hover {
    background: rgba(255,255,255,0.12);
    border-color: rgba(255,255,255,0.3);
    transform: translateY(-2px);
}

.hero-social-icon {
    width: 42px; height: 42px;
    border-radius: 12px;
    background: rgba(255,255,255,0.07);
    border: 1px solid rgba(255,255,255,0.12);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.7);
    font-size: 1.1rem;
    transition: all 0.3s ease;
    text-decoration: none;
    backdrop-filter: blur(6px);
}
.hero-social-icon:hover {
    background: #dc2626;
    border-color: #dc2626;
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(220,38,38,0.4);
}

.hero-ring {
    position: absolute;
    inset: -20px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.08);
    animation: spin-slow 20s linear infinite;
    z-index: 0;
}
.hero-ring::before {
    content: '';
    position: absolute;
    top: -4px; left: 50%;
    width: 8px; height: 8px;
    border-radius: 50%;
    background: #ef4444;
    box-shadow: 0 0 10px #ef4444;
    transform: translateX(-50%);
}

@keyframes spin-slow {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Animations */
.floating-icons {
    animation: float 6s ease-in-out infinite;
}

.floating-icons:nth-child(2) {
    animation-delay: -2s;
}

.floating-icons:nth-child(3) {
    animation-delay: -4s;
}

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

/* Orbiting Icons Animation - Smooth & Stable */
.orbit-container {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.orbit {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 44px;
    height: 44px;
    margin-top: -22px;
    margin-left: -22px;
    will-change: transform;
    pointer-events: none;
}

.orbit-1 { animation: orbit-path 12s linear infinite; animation-delay: 0s; }
.orbit-2 { animation: orbit-path 12s linear infinite; animation-delay: -2.4s; }
.orbit-3 { animation: orbit-path 12s linear infinite; animation-delay: -4.8s; }
.orbit-4 { animation: orbit-path 12s linear infinite; animation-delay: -7.2s; }
.orbit-5 { animation: orbit-path 12s linear infinite; animation-delay: -9.6s; }

@keyframes orbit-path {
    from {
        transform: rotate(0deg) translateX(145px) rotate(0deg);
    }
    to {
        transform: rotate(360deg) translateX(145px) rotate(-360deg);
    }
}

/* Hide any orbit path visualization */
.orbit::before,
.orbit::after {
    display: none !important;
}

/* Ensure orbit container is invisible */
.orbit > div:not(.orbit-icon) {
    opacity: 0 !important;
    visibility: hidden !important;
}

/* Typewriter Effect - No cursor */
.typing-cursor {
    display: inline-block;
    max-width: 100%;
    word-wrap: break-word;
    overflow-wrap: break-word;
    white-space: normal;
    min-height: 1.2em; /* Prevent jumping */
}

/* Modern Glow Effect - Clean & Professional */
.glow {
    box-shadow: 
        0 0 20px rgba(255, 165, 0, 0.4),
        0 0 40px rgba(255, 165, 0, 0.2),
        0 10px 30px rgba(0, 0, 0, 0.3);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.glow:hover {
    box-shadow: 
        0 0 35px rgba(255, 165, 0, 0.8),
        0 0 70px rgba(255, 165, 0, 0.4),
        0 15px 40px rgba(0, 0, 0, 0.4);
    transform: scale(1.03);
}

.glow img {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
    transition: filter 0.4s ease, transform 0.4s ease;
    filter: brightness(1) contrast(1.05);
    will-change: filter;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

.glow:hover img {
    filter: brightness(1.08) contrast(1.1) saturate(1.05);
    transform: scale(1.04);
}

/* Modern Orbiting Icon Styles - Clean & Professional */
.orbit-icon {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6);
    border: 2px solid rgba(255, 255, 255, 0.35);
    position: relative;
    pointer-events: auto;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 56px !important;
    height: 56px !important;
    border-radius: 50%;
    gap: 2px;
}

.orbit-icon:hover {
    transform: scale(1.2);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.7);
    border-color: rgba(255, 255, 255, 0.6);
    z-index: 20;
}

/* Icon label */
.orbit-icon span {
    font-size: 7px;
    font-weight: 700;
    color: #fff;
    letter-spacing: 0.03em;
    line-height: 1;
    text-shadow: 0 1px 3px rgba(0,0,0,0.6);
    position: relative;
    z-index: 1;
}

.orbit-icon i {
    font-size: 1.3rem !important;
    position: relative;
    z-index: 1;
    line-height: 1;
}

/* Individual icon colors */
.orbit-icon.html {
    background: linear-gradient(135deg, #e34c26 0%, #f06529 100%);
    box-shadow: 0 6px 20px rgba(227, 76, 38, 0.5);
}
.orbit-icon.css {
    background: linear-gradient(135deg, #1572b6 0%, #33a9dc 100%);
    box-shadow: 0 6px 20px rgba(21, 114, 182, 0.5);
}
.orbit-icon.js {
    background: linear-gradient(135deg, #c9a800 0%, #f0db4f 100%);
    box-shadow: 0 6px 20px rgba(240, 219, 79, 0.5);
}
.orbit-icon.react {
    background: linear-gradient(135deg, #0e8fa8 0%, #61dafb 100%);
    box-shadow: 0 6px 20px rgba(97, 218, 251, 0.5);
}
.orbit-icon.node {
    background: linear-gradient(135deg, #3d7a34 0%, #68a063 100%);
    box-shadow: 0 6px 20px rgba(104, 160, 99, 0.5);
}

/* Glow ring behind icon */
.orbit-icon::before {
    content: '';
    position: absolute;
    inset: -3px;
    border-radius: 50%;
    background: inherit;
    filter: blur(10px);
    opacity: 0.4;
    z-index: -1;
    transition: opacity 0.3s ease;
}

.orbit-icon:hover::before {
    opacity: 0.7;
}

/* ── About Section ── */
.about-stat {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 14px;
    padding: 16px 12px;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.about-stat-num {
    font-size: 1.8rem;
    font-weight: 800;
    color: #ef4444;
    line-height: 1;
}
.about-stat-label {
    font-size: 0.72rem;
    color: rgba(255,255,255,0.5);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.skill-pill {
    display: inline-flex;
    align-items: center;
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 600;
    border: 1px solid transparent;
    transition: transform 0.2s ease;
    cursor: default;
}
.skill-pill:hover { transform: translateY(-2px); }

.html-pill  { background:rgba(227,76,38,0.15);  color:#f06529; border-color:rgba(227,76,38,0.3); }
.css-pill   { background:rgba(21,114,182,0.15); color:#33a9dc; border-color:rgba(21,114,182,0.3); }
.js-pill    { background:rgba(240,219,79,0.15); color:#f0db4f; border-color:rgba(240,219,79,0.3); }
.react-pill { background:rgba(97,218,251,0.12); color:#61dafb; border-color:rgba(97,218,251,0.3); }
.node-pill  { background:rgba(104,160,99,0.15); color:#8cc84b; border-color:rgba(104,160,99,0.3); }
.git-pill   { background:rgba(240,80,50,0.15);  color:#f05032; border-color:rgba(240,80,50,0.3); }
.tw-pill    { background:rgba(56,189,248,0.12); color:#38bdf8; border-color:rgba(56,189,248,0.3); }
.ui-pill    { background:rgba(168,85,247,0.15); color:#c084fc; border-color:rgba(168,85,247,0.3); }
.resp-pill  { background:rgba(236,72,153,0.12); color:#f472b6; border-color:rgba(236,72,153,0.3); }

/* Timeline */
.timeline {
    position: relative;
    padding-left: 40px;
}
.timeline::before {
    content: '';
    position: absolute;
    left: 20px;
    top: 0; bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, #ef4444, #3b82f6, #f59e0b, #10b981);
    border-radius: 2px;
}
.timeline-item {
    position: relative;
    margin-bottom: 32px;
    display: flex;
    gap: 20px;
    align-items: flex-start;
}
.timeline-item:last-child { margin-bottom: 0; }

.timeline-dot {
    position: absolute;
    left: -31px;
    top: 14px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid rgba(255,255,255,0.15);
    flex-shrink: 0;
    z-index: 1;
}

.timeline-card {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 16px;
    padding: 20px 24px;
    flex: 1;
    transition: border-color 0.3s ease, background 0.3s ease;
}
.timeline-card:hover {
    background: rgba(255,255,255,0.07);
    border-color: rgba(255,255,255,0.15);
}
.timeline-badge {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 2px 10px;
    border-radius: 999px;
    margin-bottom: 8px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}
.timeline-title {
    font-size: 1rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 4px;
}
.timeline-sub {
    font-size: 0.78rem;
    color: rgba(255,255,255,0.4);
    margin-bottom: 8px;
    letter-spacing: 0.03em;
}
.timeline-desc {
    font-size: 0.875rem;
    color: rgba(255,255,255,0.6);
    line-height: 1.6;
}

/* ── Project Cards ── */
.project-card {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 20px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}
.project-card:hover {
    transform: translateY(-6px);
    border-color: rgba(239,68,68,0.3);
    box-shadow: 0 20px 50px rgba(0,0,0,0.4), 0 0 0 1px rgba(239,68,68,0.1);
}

.project-thumb {
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}
.project-thumb::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent 50%, rgba(0,0,0,0.4) 100%);
}
.project-thumb-icon {
    font-size: 4rem;
    color: rgba(255,255,255,0.9);
    position: relative;
    z-index: 1;
    filter: drop-shadow(0 4px 12px rgba(0,0,0,0.3));
    transition: transform 0.3s ease;
}
.project-card:hover .project-thumb-icon {
    transform: scale(1.1);
}
.project-thumb-overlay {
    position: absolute;
    bottom: 12px;
    right: 12px;
    display: flex;
    gap: 8px;
    z-index: 2;
}

.project-body {
    padding: 20px 22px 22px;
    display: flex;
    flex-direction: column;
    flex: 1;
}
.project-title {
    font-size: 1rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 8px;
}
.project-desc {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.55);
    line-height: 1.6;
    flex: 1;
    margin-bottom: 14px;
}
.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 16px;
}
.ptag {
    font-size: 0.7rem;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 999px;
    border: 1px solid transparent;
}
.project-actions {
    display: flex;
    gap: 10px;
}
.proj-btn-primary {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #dc2626, #b91c1c);
    color: #fff;
    font-size: 0.82rem;
    font-weight: 600;
    padding: 9px 14px;
    border-radius: 10px;
    border: none;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.25s ease;
    box-shadow: 0 4px 14px rgba(220,38,38,0.3);
}
.proj-btn-primary:hover {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    box-shadow: 0 6px 20px rgba(220,38,38,0.5);
    transform: translateY(-1px);
}
.proj-btn-ghost {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.05);
    color: rgba(255,255,255,0.7);
    font-size: 0.82rem;
    font-weight: 600;
    padding: 9px 14px;
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,0.12);
    text-decoration: none;
    transition: all 0.25s ease;
}
.proj-btn-ghost:hover {
    background: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.25);
    color: #fff;
    transform: translateY(-1px);
}

/* Card Hover Effects */
.card-hover {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card-hover:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

/* ── Service Cards ── */
.service-card {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: 20px;
    padding: 28px 24px;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: 14px;
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}
.service-card:hover {
    transform: translateY(-6px);
    border-color: rgba(255,255,255,0.14);
    box-shadow: 0 20px 50px rgba(0,0,0,0.35);
}
.service-glow {
    position: absolute;
    bottom: -40px;
    right: -40px;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    filter: blur(40px);
    pointer-events: none;
    transition: opacity 0.3s ease;
    opacity: 0.6;
}
.service-card:hover .service-glow {
    opacity: 1;
}
.service-icon-wrap {
    width: 54px;
    height: 54px;
    border-radius: 14px;
    border: 1px solid;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: transform 0.3s ease;
}
.service-card:hover .service-icon-wrap {
    transform: scale(1.08);
}
.service-title {
    font-size: 1rem;
    font-weight: 700;
    color: #fff;
}
.service-desc {
    font-size: 0.83rem;
    color: rgba(255,255,255,0.5);
    line-height: 1.65;
    flex: 1;
}
.service-arrow {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease, background 0.3s ease;
}
.service-card:hover .service-arrow {
    transform: translateX(3px);
    background: rgba(255,255,255,0.1);
}

/* Skill Tags */
.skill-tag {
    transition: all 0.3s ease;
    cursor: pointer;
}

.skill-tag:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

/* Button Animations */
.btn-animate {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.btn-animate::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;
}

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

/* Mobile Responsive Adjustments */
@media (max-width: 768px) {
    .orbit-1 { animation: orbit-path-mobile 12s linear infinite; animation-delay: 0s; }
    .orbit-2 { animation: orbit-path-mobile 12s linear infinite; animation-delay: -2.4s; }
    .orbit-3 { animation: orbit-path-mobile 12s linear infinite; animation-delay: -4.8s; }
    .orbit-4 { animation: orbit-path-mobile 12s linear infinite; animation-delay: -7.2s; }
    .orbit-5 { animation: orbit-path-mobile 12s linear infinite; animation-delay: -9.6s; }

    @keyframes orbit-path-mobile {
        from { transform: rotate(0deg) translateX(135px) rotate(0deg); }
        to   { transform: rotate(360deg) translateX(135px) rotate(-360deg); }
    }
    
    .typing-cursor {
        font-size: 1.5rem !important;
        line-height: 1.3;
        min-height: 1.5em;
    }
    
    .orbit-icon {
        width: 52px !important;
        height: 52px !important;
        border: 2px solid rgba(255, 255, 255, 0.4);
        box-shadow: 0 6px 20px rgba(0, 0, 0, 0.7);
    }
    
    .orbit-icon i {
        font-size: 1.2rem !important;
    }
    
    .orbit-icon span {
        font-size: 6.5px;
        font-weight: 800;
    }
    
    /* Adjust floating bubbles on mobile */
    .floating-icons:nth-child(1) {
        bottom: 10px !important;
        right: 5px !important;
        width: 40px !important;
        height: 40px !important;
    }
    
    .floating-icons:nth-child(2) {
        top: 60% !important;
        right: 10px !important;
        width: 30px !important;
        height: 30px !important;
    }
    
    .floating-icons:nth-child(3) {
        top: 20% !important;
        right: 15% !important;
        width: 20px !important;
        height: 20px !important;
    }
}

/* Extra small screens */
@media (max-width: 480px) {
    .orbit-1 { animation: orbit-path-xs 10s linear infinite; animation-delay: 0s; }
    .orbit-2 { animation: orbit-path-xs 10s linear infinite; animation-delay: -2s; }
    .orbit-3 { animation: orbit-path-xs 10s linear infinite; animation-delay: -4s; }
    .orbit-4 { animation: orbit-path-xs 10s linear infinite; animation-delay: -6s; }
    .orbit-5 { animation: orbit-path-xs 10s linear infinite; animation-delay: -8s; }

    @keyframes orbit-path-xs {
        from { transform: rotate(0deg) translateX(125px) rotate(0deg); }
        to   { transform: rotate(360deg) translateX(125px) rotate(-360deg); }
    }
    
    .orbit-icon {
        width: 48px !important;
        height: 48px !important;
        border: 2.5px solid rgba(255, 255, 255, 0.5);
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.8);
    }
    
    .orbit-icon i {
        font-size: 1.1rem !important;
    }
    
    .orbit-icon span {
        font-size: 6px;
        font-weight: 800;
        text-shadow: 0 2px 4px rgba(0,0,0,0.8);
    }
    
    /* Enhance icon visibility */
    .orbit-icon.html {
        box-shadow: 0 8px 24px rgba(227, 76, 38, 0.7);
    }
    .orbit-icon.css {
        box-shadow: 0 8px 24px rgba(21, 114, 182, 0.7);
    }
    .orbit-icon.js {
        box-shadow: 0 8px 24px rgba(240, 219, 79, 0.7);
    }
    .orbit-icon.react {
        box-shadow: 0 8px 24px rgba(97, 218, 251, 0.7);
    }
    .orbit-icon.node {
        box-shadow: 0 8px 24px rgba(104, 160, 99, 0.7);
    }
}

/* ── Contact Section ── */
.contact-info-card {
    display: flex;
    align-items: center;
    gap: 16px;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 16px;
    padding: 18px 20px;
    transition: all 0.3s ease;
}
.contact-info-card:hover {
    background: rgba(255,255,255,0.06);
    border-color: rgba(255,255,255,0.15);
    transform: translateX(5px);
}

.contact-icon-wrap {
    width: 50px;
    height: 50px;
    border-radius: 14px;
    border: 1px solid;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 1.1rem;
    transition: transform 0.3s ease;
}
.contact-info-card:hover .contact-icon-wrap {
    transform: scale(1.1) rotate(5deg);
}

.contact-label {
    font-size: 0.7rem;
    font-weight: 600;
    color: rgba(255,255,255,0.4);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 4px;
}
.contact-value {
    font-size: 0.95rem;
    color: rgba(255,255,255,0.85);
    font-weight: 500;
}

.contact-social-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.7);
    font-size: 1.1rem;
    transition: all 0.3s ease;
    text-decoration: none;
}
.contact-social-icon:hover {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    border-color: #ef4444;
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(239,68,68,0.4);
}

.contact-form-wrapper {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 20px;
    padding: 32px;
    backdrop-filter: blur(10px);
}

.contact-form-label {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    color: rgba(255,255,255,0.5);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 8px;
}

.contact-input {
    width: 100%;
    padding: 14px 18px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 12px;
    color: #fff;
    font-size: 0.95rem;
    outline: none;
    transition: all 0.3s ease;
    font-family: 'Inter', sans-serif;
}
.contact-input::placeholder {
    color: rgba(255,255,255,0.3);
}
.contact-input:focus {
    border-color: rgba(239,68,68,0.5);
    background: rgba(255,255,255,0.06);
    box-shadow: 0 0 0 3px rgba(239,68,68,0.1);
}

.contact-submit-btn {
    width: 100%;
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: #fff;
    font-weight: 700;
    font-size: 0.9rem;
    padding: 14px 28px;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    letter-spacing: 0.05em;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(239,68,68,0.3);
}
.contact-submit-btn:hover {
    background: linear-gradient(135deg, #dc2626, #b91c1c);
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(239,68,68,0.5);
}
.contact-submit-btn:active {
    transform: translateY(0);
}

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

::-webkit-scrollbar-track {
    background: #1a1a1a;
}

::-webkit-scrollbar-thumb {
    background: #dc2626;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #b91c1c;
}

/* Nav Logo - Modern Design (No Hover) */
.nav-logo {
    display: inline-flex;
    align-items: center;
    font-size: 1.75rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1;
    text-decoration: none;
    cursor: pointer;
}

.nav-logo-text {
    background: linear-gradient(135deg, #ffffff 0%, #ef4444 45%, #f97316 75%, #fbbf24 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 800;
    text-shadow: 0 2px 20px rgba(239, 68, 68, 0.3);
    filter: drop-shadow(0 0 10px rgba(239, 68, 68, 0.2));
}

/* Nav Link - Modern Hover Effects */
.nav-link {
    position: relative;
    color: white !important;
    font-weight: 500;
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 8px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

/* Animated gradient background on hover */
.nav-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(239, 68, 68, 0.15), transparent);
    transition: left 0.5s ease;
    z-index: -1;
}

.nav-link:hover::before {
    left: 100%;
}

/* Glowing underline effect */
.nav-link::after {
    content: '';
    position: absolute;
    bottom: 6px;
    left: 50%;
    transform: translateX(-50%);
    width: 0%;
    height: 2px;
    background: linear-gradient(90deg, #ef4444, #f97316, #ef4444);
    background-size: 200% 100%;
    border-radius: 2px;
    box-shadow: 0 0 8px rgba(239, 68, 68, 0.6);
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    animation: shimmer 2s linear infinite;
}

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

.nav-link:hover {
    color: #ef4444 !important;
    background: rgba(239, 68, 68, 0.1);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.2);
}

.nav-link:hover::after {
    width: 80%;
}

/* Active state */
.nav-link:active {
    transform: translateY(0);
}

/* Footer Link - Modern Slide + Glow Hover */
.footer-link {
    position: relative;
    color: #9ca3af !important;
    font-size: 0.875rem;
    text-decoration: none;
    padding-left: 0;
    transition: color 0.3s ease, padding-left 0.3s ease;
    display: inline-block;
}

.footer-link::before {
    content: '→';
    position: absolute;
    left: -16px;
    opacity: 0;
    color: #ef4444;
    transition: opacity 0.3s ease, left 0.3s ease;
}

.footer-link:hover {
    color: #ef4444 !important;
    padding-left: 18px;
}

.footer-link:hover::before {
    opacity: 1;
    left: 0;
}

/* Modern Footer Styles */
.footer-link-modern {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: rgba(255,255,255,0.6);
    font-size: 0.9rem;
    text-decoration: none;
    padding: 6px 12px;
    border-radius: 8px;
    transition: all 0.3s ease;
    position: relative;
}

.footer-link-modern::before {
    content: '';
    position: absolute;
    left: 0;
    width: 0;
    height: 100%;
    background: rgba(239,68,68,0.1);
    border-radius: 8px;
    transition: width 0.3s ease;
    z-index: -1;
}

.footer-link-modern:hover::before {
    width: 100%;
}

.footer-link-modern:hover {
    color: #ef4444;
    transform: translateX(5px);
}

.footer-link-modern i {
    color: rgba(255,255,255,0.4);
    transition: color 0.3s ease;
}

.footer-link-modern:hover i {
    color: #ef4444;
}

.footer-social-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.7);
    font-size: 1.1rem;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.footer-social-icon::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #ef4444, #dc2626);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.footer-social-icon:hover::before {
    opacity: 1;
}

.footer-social-icon i {
    position: relative;
    z-index: 1;
}

.footer-social-icon:hover {
    color: #fff;
    border-color: #ef4444;
    transform: translateY(-3px) rotate(5deg);
    box-shadow: 0 8px 20px rgba(239,68,68,0.4);
}

/* Beautiful Email Card */
.footer-email-card {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 14px;
    padding: 12px 18px;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    overflow: hidden;
    max-width: 100%;
}

.footer-email-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(239,68,68,0.1), rgba(220,38,38,0.05));
    opacity: 0;
    transition: opacity 0.4s ease;
}

.footer-email-card:hover::before {
    opacity: 1;
}

.footer-email-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: linear-gradient(135deg, #ef4444, #dc2626);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1rem;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(239,68,68,0.3);
    transition: all 0.3s ease;
}

.footer-email-card:hover .footer-email-icon {
    transform: scale(1.1) rotate(-5deg);
    box-shadow: 0 6px 20px rgba(239,68,68,0.5);
}

.footer-email-text {
    color: rgba(255,255,255,0.8);
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.01em;
    transition: color 0.3s ease;
    word-break: break-all;
}

.footer-email-card:hover .footer-email-text {
    color: #ef4444;
}

.footer-email-arrow {
    color: rgba(255,255,255,0.3);
    font-size: 0.9rem;
    margin-left: auto;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.footer-email-card:hover .footer-email-arrow {
    color: #ef4444;
    transform: translateX(5px);
}

.footer-email-card:hover {
    border-color: rgba(239,68,68,0.3);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(239,68,68,0.2);
}

@media (max-width: 768px) {
    .footer-email-card {
        justify-content: center;
    }
    
    .footer-email-text {
        font-size: 0.75rem;
    }
}


/* ═══════════════════════════════════════════════════════════════ */
/* COMPREHENSIVE MOBILE RESPONSIVE STYLES */
/* ═══════════════════════════════════════════════════════════════ */

/* Large Tablets & Small Desktops (1024px and below) */
@media (max-width: 1024px) {
    .nav-logo {
        font-size: 1.5rem;
    }
    
    .nav-link {
        padding: 8px 14px;
        font-size: 0.9rem;
    }
}

/* Tablets (768px and below) */
@media (max-width: 768px) {
    /* Navigation */
    .nav-logo {
        font-size: 1.3rem;
    }
    
    /* Hero Section */
    .hero-badge {
        font-size: 0.7rem;
        padding: 5px 12px;
    }
    
    .hero-btn-primary,
    .hero-btn-secondary {
        font-size: 0.85rem;
        padding: 10px 20px;
    }
    
    /* About Section */
    .about-stat {
        padding: 12px 8px;
    }
    
    .about-stat-num {
        font-size: 1.5rem;
    }
    
    .about-stat-label {
        font-size: 0.65rem;
    }
    
    /* Timeline */
    .timeline {
        padding-left: 30px;
    }
    
    .timeline::before {
        left: 15px;
    }
    
    .timeline-dot {
        left: -26px;
        width: 20px;
        height: 20px;
    }
    
    .timeline-card {
        padding: 16px 18px;
    }
    
    /* Projects */
    .project-card {
        margin-bottom: 20px;
    }
    
    /* Services */
    .service-card {
        padding: 24px 20px;
    }
    
    /* Contact */
    .contact-form-wrapper {
        padding: 24px;
    }
    
    .contact-info-card {
        padding: 14px 16px;
    }
    
    /* Footer */
    .footer-email-card {
        padding: 10px 14px;
    }
}

/* Mobile Devices (480px and below) */
@media (max-width: 480px) {
    /* Navigation */
    .nav-logo {
        font-size: 1.1rem;
    }
    
    .nav-logo-text {
        font-size: 1.1rem;
    }
    
    /* Hero Section */
    .hero-badge {
        font-size: 0.65rem;
        padding: 4px 10px;
    }
    
    .hero-btn-primary,
    .hero-btn-secondary {
        font-size: 0.8rem;
        padding: 10px 18px;
        width: 100%;
        justify-content: center;
    }
    
    .hero-social-icon {
        width: 38px;
        height: 38px;
        font-size: 1rem;
    }
    
    /* Section Headers */
    h2 {
        font-size: 2rem !important;
    }
    
    /* About Section */
    .about-stat {
        padding: 10px 6px;
    }
    
    .about-stat-num {
        font-size: 1.3rem;
    }
    
    .about-stat-label {
        font-size: 0.6rem;
    }
    
    .skill-pill {
        font-size: 0.75rem;
        padding: 5px 12px;
    }
    
    /* Timeline */
    .timeline {
        padding-left: 25px;
    }
    
    .timeline::before {
        left: 12px;
    }
    
    .timeline-dot {
        left: -23px;
        width: 18px;
        height: 18px;
        font-size: 0.6rem;
    }
    
    .timeline-card {
        padding: 14px 16px;
    }
    
    .timeline-title {
        font-size: 0.9rem;
    }
    
    .timeline-sub {
        font-size: 0.7rem;
    }
    
    .timeline-desc {
        font-size: 0.8rem;
    }
    
    .timeline-badge {
        font-size: 0.65rem;
        padding: 2px 8px;
    }
    
    /* Projects */
    .project-card {
        margin-bottom: 16px;
    }
    
    .project-thumb {
        height: 140px;
    }
    
    .project-thumb-icon {
        font-size: 3rem;
    }
    
    .project-title {
        font-size: 0.95rem;
    }
    
    .project-desc {
        font-size: 0.8rem;
    }
    
    .ptag {
        font-size: 0.65rem;
        padding: 2px 8px;
    }
    
    .proj-btn-primary,
    .proj-btn-ghost {
        font-size: 0.75rem;
        padding: 8px 12px;
    }
    
    /* Services */
    .service-card {
        padding: 20px 16px;
        gap: 12px;
    }
    
    .service-icon-wrap {
        width: 48px;
        height: 48px;
    }
    
    .service-icon-wrap i {
        font-size: 1.3rem;
    }
    
    .service-title {
        font-size: 0.95rem;
    }
    
    .service-desc {
        font-size: 0.78rem;
    }
    
    /* Contact */
    .contact-form-wrapper {
        padding: 20px;
    }
    
    .contact-info-card {
        padding: 12px 14px;
        gap: 12px;
    }
    
    .contact-icon-wrap {
        width: 44px;
        height: 44px;
        font-size: 1rem;
    }
    
    .contact-label {
        font-size: 0.65rem;
    }
    
    .contact-value {
        font-size: 0.85rem;
    }
    
    .contact-social-icon {
        width: 42px;
        height: 42px;
        font-size: 1rem;
    }
    
    .contact-input {
        padding: 12px 14px;
        font-size: 0.9rem;
    }
    
    .contact-submit-btn {
        font-size: 0.85rem;
        padding: 12px 24px;
    }
    
    /* Footer */
    .footer-link-modern {
        font-size: 0.85rem;
        padding: 5px 10px;
    }
    
    .footer-social-icon {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .footer-email-card {
        padding: 10px 12px;
        gap: 10px;
    }
    
    .footer-email-icon {
        width: 36px;
        height: 36px;
        font-size: 0.9rem;
    }
    
    .footer-email-text {
        font-size: 0.7rem;
    }
    
    .footer-email-arrow {
        font-size: 0.8rem;
    }
}

/* Extra Small Mobile Devices (360px and below) */
@media (max-width: 360px) {
    /* Navigation */
    .nav-logo {
        font-size: 1rem;
    }
    
    .nav-logo-text {
        font-size: 1rem;
    }
    
    /* Hero Section */
    .hero-badge {
        font-size: 0.6rem;
        padding: 3px 8px;
    }
    
    .hero-btn-primary,
    .hero-btn-secondary {
        font-size: 0.75rem;
        padding: 9px 16px;
    }
    
    .hero-social-icon {
        width: 36px;
        height: 36px;
        font-size: 0.9rem;
    }
    
    /* Section Headers */
    h2 {
        font-size: 1.75rem !important;
    }
    
    /* About Section */
    .about-stat-num {
        font-size: 1.2rem;
    }
    
    .about-stat-label {
        font-size: 0.55rem;
    }
    
    .skill-pill {
        font-size: 0.7rem;
        padding: 4px 10px;
    }
    
    /* Timeline */
    .timeline-card {
        padding: 12px 14px;
    }
    
    .timeline-title {
        font-size: 0.85rem;
    }
    
    .timeline-desc {
        font-size: 0.75rem;
    }
    
    /* Projects */
    .project-thumb {
        height: 120px;
    }
    
    .project-thumb-icon {
        font-size: 2.5rem;
    }
    
    .project-title {
        font-size: 0.9rem;
    }
    
    .project-desc {
        font-size: 0.75rem;
    }
    
    .ptag {
        font-size: 0.6rem;
        padding: 2px 7px;
    }
    
    .proj-btn-primary,
    .proj-btn-ghost {
        font-size: 0.7rem;
        padding: 7px 10px;
    }
    
    /* Services */
    .service-card {
        padding: 18px 14px;
    }
    
    .service-icon-wrap {
        width: 44px;
        height: 44px;
    }
    
    .service-icon-wrap i {
        font-size: 1.2rem;
    }
    
    .service-title {
        font-size: 0.9rem;
    }
    
    .service-desc {
        font-size: 0.75rem;
    }
    
    /* Contact */
    .contact-form-wrapper {
        padding: 18px;
    }
    
    .contact-info-card {
        padding: 10px 12px;
    }
    
    .contact-icon-wrap {
        width: 40px;
        height: 40px;
        font-size: 0.9rem;
    }
    
    .contact-value {
        font-size: 0.8rem;
    }
    
    .contact-social-icon {
        width: 38px;
        height: 38px;
        font-size: 0.95rem;
    }
    
    .contact-input {
        padding: 11px 13px;
        font-size: 0.85rem;
    }
    
    .contact-submit-btn {
        font-size: 0.8rem;
        padding: 11px 20px;
    }
    
    /* Footer */
    .footer-email-card {
        padding: 8px 10px;
        gap: 8px;
    }
    
    .footer-email-icon {
        width: 32px;
        height: 32px;
        font-size: 0.85rem;
    }
    
    .footer-email-text {
        font-size: 0.65rem;
    }
}

/* Landscape Mode Adjustments for Mobile */
@media (max-height: 500px) and (orientation: landscape) {
    .hero-badge {
        margin-bottom: 8px;
    }
    
    .hero-btn-primary,
    .hero-btn-secondary {
        padding: 8px 16px;
    }
    
    section {
        padding-top: 60px !important;
        padding-bottom: 60px !important;
    }
}

/* Fix for very small screens */
@media (max-width: 320px) {
    .nav-logo-text {
        font-size: 0.9rem;
    }
    
    .hero-btn-primary,
    .hero-btn-secondary {
        font-size: 0.7rem;
        padding: 8px 14px;
    }
    
    .footer-email-text {
        font-size: 0.6rem;
    }
    
    .contact-value {
        font-size: 0.75rem;
        word-break: break-all;
    }
}
