/* ============================================
   PREMIUM WORDPRESS DEVELOPER PORTFOLIO
   Professional Design | Modern Typography | Sophisticated Colors
   ============================================ */

/* Professional Color Palette & Typography */
/* Professional Color Palette & Typography */
:root {
    /* Dark Theme (Default) - Professional Dark Slate Palette */
    --bg-primary: #0f172a;
    --bg-secondary: #1e293b;
    --bg-tertiary: #334155;
    --bg-card: #1e293b;
    --bg-card-rgb: 30, 41, 59;

    --text-primary: #f1f5f9;
    --text-secondary: #cbd5e1;
    --text-muted: #64748b;

    --accent-primary: #3b82f6;
    --accent-secondary: #60a5fa;
    --accent-tertiary: #93c5fd;

    --success: #34d399;
    --warning: #fbbf24;
    --error: #f87171;

    --border-light: #334155;
    --border-medium: #475569;

    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.5);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.6);

    --gradient-primary: linear-gradient(135deg, #818cf8 0%, #a78bfa 100%);
    --gradient-secondary: linear-gradient(135deg, #3b82f6 0%, #60a5fa 100%);
    --gradient-accent: linear-gradient(135deg, #22d3ee 0%, #60a5fa 100%);
}

[data-theme="light"] {
    /* Light Theme - Professional Blue/Slate Palette */
    --bg-primary: #ffffff;
    --bg-secondary: #f8fafc;
    --bg-tertiary: #f1f5f9;
    --bg-card: #ffffff;

    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #94a3b8;

    --accent-primary: #2563eb;
    --accent-secondary: #3b82f6;
    --accent-tertiary: #60a5fa;

    --success: #10b981;
    --warning: #f59e0b;
    --error: #ef4444;

    --border-light: #e2e8f0;
    --border-medium: #cbd5e1;
    --bg-card-rgb: 255, 255, 255;

    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);

    --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-secondary: linear-gradient(135deg, #2563eb 0%, #3b82f6 100%);
    --gradient-accent: linear-gradient(135deg, #06b6d4 0%, #3b82f6 100%);
}

/* Professional Typography */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Poppins:wght@400;500;600;700;800&family=JetBrains+Mono:wght@400;500;600&display=swap');

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    font-size: 16px;
    font-weight: 400;
    transition: background-color 0.3s ease, color 0.3s ease;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Professional Headings */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    line-height: 1.2;
    color: var(--text-primary);
}

/* Typing Animation Cursor */
.typing-text::after {
    content: '|';
    animation: blink 0.7s infinite;
    margin-left: 5px;
    color: var(--accent-primary);
}

@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}

/* Floating Background Blobs */
.bg-blobs {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    filter: blur(80px);
    opacity: 0.4;
    z-index: -1;
    pointer-events: none;
}

.blob {
    position: absolute;
    width: 400px;
    height: 400px;
    background: var(--gradient-primary);
    filter: blur(80px);
    border-radius: 50%;
    opacity: 0.1;
    animation: move 20s infinite alternate;
}

.blob-1 {
    top: -100px;
    left: -100px;
    animation-duration: 25s;
}

.blob-2 {
    bottom: -100px;
    right: -100px;
    background: var(--gradient-accent);
    animation-duration: 30s;
    animation-delay: -5s;
}

.blob-3 {
    top: 50%;
    left: 50%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(96, 165, 250, 0.1) 0%, transparent 70%);
    animation: move-blobs 40s infinite alternate;
    z-index: -1;
}

@keyframes move-blobs {
    0% {
        transform: translate(-10%, -10%) rotate(0deg) scale(1);
    }

    50% {
        transform: translate(10%, 10%) rotate(180deg) scale(1.1);
    }

    100% {
        transform: translate(-10%, -10%) rotate(360deg) scale(1);
    }
}

/* Starfield Background */
.starfield {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
    background-image:
        radial-gradient(1px 1px at 20px 30px, #fff, rgba(0, 0, 0, 0)),
        radial-gradient(1px 1px at 40px 70px, #fff, rgba(0, 0, 0, 0)),
        radial-gradient(1px 1px at 50px 160px, #fff, rgba(0, 0, 0, 0)),
        radial-gradient(1px 1px at 80px 120px, #fff, rgba(0, 0, 0, 0)),
        radial-gradient(1.5px 1.5px at 110px 210px, #fff, rgba(0, 0, 0, 0)),
        radial-gradient(1px 1px at 150px 250px, #fff, rgba(0, 0, 0, 0));
    background-repeat: repeat;
    background-size: 200px 200px;
    animation: stars-move 100s linear infinite;
    opacity: 0.1;
}

@keyframes stars-move {
    from {
        background-position: 0 0;
    }

    to {
        background-position: 1000px 1000px;
    }
}

.blob-3 {
    top: 50%;
    left: 50%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(96, 165, 250, 0.1) 0%, transparent 70%);
    animation: move-blobs 40s infinite alternate;
    z-index: -1;
}

@keyframes move-blobs {
    0% {
        transform: translate(-10%, -10%) rotate(0deg) scale(1);
    }

    50% {
        transform: translate(10%, 10%) rotate(180deg) scale(1.1);
    }

    100% {
        transform: translate(-10%, -10%) rotate(360deg) scale(1);
    }
}

@keyframes move {
    from {
        transform: translate(0, 0) scale(1);
    }

    to {
        transform: translate(100px, 100px) scale(1.2);
    }
}

/* Global Particle/Crystal Background */
.crystal-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    background: radial-gradient(circle at center, var(--bg-secondary) 0%, var(--bg-primary) 100%);
    pointer-events: none;
}

/* Background Vignette & Noise */
.crystal-bg::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, transparent 0%, rgba(0, 0, 0, 0.2) 100%);
    pointer-events: none;
}

[data-theme="light"] .crystal-bg::after {
    background: radial-gradient(circle at center, transparent 0%, rgba(0, 0, 0, 0.05) 100%);
}

.crystal {
    position: absolute;
    background: var(--gradient-primary);
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    opacity: 0.03;
    animation: float-crystal 15s infinite linear;
}

@keyframes float-crystal {
    0% {
        transform: translateY(100vh) rotate(0deg) scale(1);
    }

    100% {
        transform: translateY(-100px) rotate(360deg) scale(1.5);
    }
}

/* Enhanced Section Transitions */
.section {
    padding: 120px 24px;
    background: transparent !important;
    /* Allow crystal bg to show */
    position: relative;
    border-bottom: 1px solid var(--border-light);
}

/* Glassmorphism Card Enhancement */
.skill-box,
.timeline-event-copy,
.portfolio_item,
.contact-bg {
    backdrop-filter: blur(12px) saturate(180%);
    background: rgba(var(--bg-card-rgb), 0.7) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.15) !important;
}

/* Dynamic Hover Glow */
.skill-box:hover,
.portfolio_item:hover {
    box-shadow: 0 0 30px rgba(102, 126, 234, 0.3) !important;
    transform: translateY(-10px) scale(1.02);
}

/* Section Header Styling */
.section h4 {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 800;
    font-size: 1.2rem;
}

.section h1.size-50 {
    font-size: 3.5rem;
    letter-spacing: -1px;
}

/* Profile Image Glow & Motion */
.profile-img-container {
    position: relative;
    overflow: hidden;
    border-radius: 30px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

#profilepic {
    border: none;
    animation: float-slow 6s ease-in-out infinite;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    display: block;
    width: 100%;
}

/* Shine effect on profile image */
.profile-img-container::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg,
            transparent 0%,
            rgba(255, 255, 255, 0) 45%,
            rgba(255, 255, 255, 0.1) 50%,
            rgba(255, 255, 255, 0) 55%,
            transparent 100%);
    transform: rotate(45deg);
    animation: shine 6s infinite;
    pointer-events: none;
}

@keyframes shine {
    0% {
        transform: translateX(-100%) rotate(45deg);
    }

    20% {
        transform: translateX(100%) rotate(45deg);
    }

    100% {
        transform: translateX(100%) rotate(45deg);
    }
}

@keyframes float-slow {

    0%,
    100% {
        transform: translateY(0) rotate(0deg) scale(1);
    }

    50% {
        transform: translateY(-20px) rotate(1deg) scale(1.02);
    }
}

@keyframes profile-reveal {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(30px);
        filter: blur(10px);
    }

    to {
        opacity: 1;
        transform: scale(1) translateY(0);
        filter: blur(0);
    }
}

/* Perspective for 3D tilt */
.profile-img-container {
    perspective: 1000px;
}

#profilepic {
    border: none;
    animation:
        profile-reveal 1.2s cubic-bezier(0.23, 1, 0.32, 1) forwards,
        float-slow 6s ease-in-out 1.2s infinite;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    display: block;
    width: 100%;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

#profilepic:hover {
    transform: rotateY(10deg) rotateX(10deg) translateY(-25px);
    box-shadow: -15px 20px 50px rgba(59, 130, 246, 0.4);
    animation-play-state: paused;
}

/* Premium Theme Toggle Redesign */
.theme-toggle-btn {
    position: fixed;
    top: 24px;
    right: 24px;
    z-index: 9999;
    width: 64px;
    height: 34px;
    border-radius: 20px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-medium);
    cursor: pointer;
    display: flex;
    align-items: center;
    padding: 4px;
    box-shadow: var(--shadow-md);
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.theme-toggle-btn::before {
    content: '';
    position: absolute;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: var(--accent-primary);
    left: 4px;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    box-shadow: 0 0 15px rgba(59, 130, 246, 0.5);
}

[data-theme="dark"] .theme-toggle-btn::before {
    left: 34px;
    background: #f1f5f9;
    box-shadow: 0 0 15px rgba(241, 245, 249, 0.5);
}

.theme-toggle-btn svg {
    width: 16px;
    height: 16px;
    position: absolute;
    z-index: 1;
    transition: all 0.4s ease;
}

.theme-toggle-btn .sun {
    left: 9px;
    color: #fff;
    opacity: 1;
    display: block !important;
    animation: rotate-sun 10s linear infinite;
}

@keyframes rotate-sun {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.theme-toggle-btn .moon {
    right: 9px;
    color: #64748b;
    opacity: 0.5;
    display: block !important;
    animation: swing-moon 4s ease-in-out infinite alternate;
}

@keyframes swing-moon {
    from {
        transform: rotate(-10deg);
    }

    to {
        transform: rotate(10deg);
    }
}

[data-theme="dark"] .theme-toggle-btn .sun {
    opacity: 0.5;
    color: #64748b;
}

[data-theme="dark"] .theme-toggle-btn .moon {
    opacity: 1;
    color: #1e293b;
}

.theme-toggle-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 0 25px var(--accent-primary);
}

/* Pulsing effect for the active state toggle handle */
@keyframes handle-pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.4);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(59, 130, 246, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(59, 130, 246, 0);
    }
}

.theme-toggle-btn::before {
    animation: handle-pulse 2s infinite;
}

[data-theme="dark"] .theme-toggle-btn::before {
    box-shadow: 0 0 15px rgba(241, 245, 249, 0.5);
}

/* Hero Section - Professional Layout with Enhanced Visibility */
#home {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 140px 32px 100px;
    background: var(--bg-primary);
    position: relative;
    overflow: hidden;
}

#home::before {
    content: '';
    position: absolute;
    top: -15%;
    right: -15%;
    width: 700px;
    height: 700px;
    background: var(--gradient-primary);
    opacity: 0.08;
    border-radius: 50%;
    filter: blur(100px);
    pointer-events: none;
}

#home::after {
    content: '';
    position: absolute;
    bottom: -15%;
    left: -15%;
    width: 600px;
    height: 600px;
    background: var(--gradient-accent);
    opacity: 0.08;
    border-radius: 50%;
    filter: blur(100px);
    pointer-events: none;
}

.disply-table {
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: 100px;
    align-items: center;
    max-width: 1320px;
    margin: 0 auto;
    width: 100%;
    position: relative;
    z-index: 1;
}

.table-cell h4 {
    color: var(--accent-primary);
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 4px;
    margin-bottom: 24px;
    margin-left: 0;
    font-family: 'Inter', sans-serif;
    position: relative;
    display: inline-block;
    opacity: 0.9;
}

.table-cell h4::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 70px;
    height: 4px;
    background: var(--gradient-primary);
    border-radius: 3px;
}

.table-cell h4:before {
    display: none;
}

.table-cell h1 {
    font-size: 4.5rem;
    font-weight: 900;
    line-height: 1.15;
    margin-bottom: 28px;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-family: 'Poppins', sans-serif;
    letter-spacing: -0.03em;
    text-shadow: 0 0 1px rgba(0, 0, 0, 0.1);
}

.table-cell p {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 15px;
    color: var(--text-secondary);
    margin-bottom: 40px;
    line-height: 1.9;
    max-width: 650px;
    font-weight: 400;
    opacity: 0.95;
}

/* Modern Hero Buttons - Glassmorphism Design */
.hero-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    align-items: center;
    margin-top: 36px;
}

/* Primary Button - Gradient with Glass Effect */
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 16px 32px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    font-family: 'Inter', sans-serif;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow:
        0 8px 32px rgba(102, 126, 234, 0.35),
        0 2px 8px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(10px);
}

/* Animated background gradient */
.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.btn-primary:hover::before {
    opacity: 1;
}

/* Shine effect */
.btn-primary::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg,
            transparent 30%,
            rgba(255, 255, 255, 0.3) 50%,
            transparent 70%);
    transform: translateX(-100%) translateY(-100%) rotate(45deg);
    transition: transform 0.6s ease;
}

.btn-primary:hover::after {
    transform: translateX(100%) translateY(100%) rotate(45deg);
}

.btn-primary:hover {
    transform: translateY(-4px) scale(1.03);
    box-shadow:
        0 12px 40px rgba(102, 126, 234, 0.5),
        0 4px 12px rgba(0, 0, 0, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
}

.btn-primary:active {
    transform: translateY(-2px) scale(1.01);
}

/* Secondary Button - Glass Morphism */
.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 16px 32px;
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    font-family: 'Inter', sans-serif;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow:
        0 8px 32px rgba(31, 38, 135, 0.15),
        inset 0 0 0 1px rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.18);
}

[data-theme="dark"] .btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.3),
        inset 0 0 0 1px rgba(255, 255, 255, 0.1);
}

/* Gradient overlay on hover */
.btn-secondary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.2) 0%, rgba(118, 75, 162, 0.2) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.btn-secondary:hover::before {
    opacity: 1;
}

/* Ripple effect */
.btn-secondary::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(102, 126, 234, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.5s ease, height 0.5s ease;
}

.btn-secondary:hover::after {
    width: 300px;
    height: 300px;
}

.btn-secondary:hover {
    transform: translateY(-4px) scale(1.03);
    background: rgba(255, 255, 255, 0.15);
    color: var(--accent-primary);
    box-shadow:
        0 12px 40px rgba(102, 126, 234, 0.25),
        inset 0 0 0 1px rgba(102, 126, 234, 0.3);
    border-color: rgba(102, 126, 234, 0.4);
}

[data-theme="dark"] .btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    box-shadow:
        0 12px 40px rgba(59, 130, 246, 0.3),
        inset 0 0 0 1px rgba(59, 130, 246, 0.4);
}

.btn-secondary:active {
    transform: translateY(-2px) scale(1.01);
}

/* Button Icons */
.btn-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    position: relative;
    z-index: 1;
    transition: transform 0.3s ease;
}

.btn-primary:hover .btn-icon,
.btn-secondary:hover .btn-icon {
    transform: scale(1.1) rotate(5deg);
}

.btn-icon svg {
    width: 20px;
    height: 20px;
}

/* Button Text */
.btn-text {
    position: relative;
    z-index: 1;
    letter-spacing: 0.3px;
}

#profilepic {
    width: 100%;
    max-width: 500px;
    height: 620px;
    object-fit: cover;
    border-radius: 28px;
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.2);
    border: 4px solid var(--border-light);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    margin: 0 auto;
    display: block;
    position: relative;
}

#profilepic:hover {
    transform: scale(1.03) translateY(-10px);
    box-shadow: 0 30px 80px rgba(102, 126, 234, 0.3);
    border-color: var(--accent-primary);
}

#profilediv {
    position: relative;
}

#profilediv::before {
    content: '';
    position: absolute;
    top: -30px;
    right: -30px;
    width: 250px;
    height: 250px;
    background: var(--gradient-accent);
    opacity: 0.12;
    border-radius: 50%;
    z-index: -1;
    animation: pulse 4s ease-in-out infinite;
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 0.12;
    }

    50% {
        transform: scale(1.1);
        opacity: 0.18;
    }
}

/* Section Styles - Professional Spacing */
.section {
    padding: 100px 24px;
    background: var(--bg-secondary);
    position: relative;
}

.section:nth-child(even) {
    background: var(--bg-primary);
}

.container {
    max-width: 1280px;
    margin: 0 auto;
}

.section h4 {
    color: var(--accent-primary);
    font-size: 15px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 12px;
    margin-left: 0;
    font-family: 'Inter', sans-serif;
}

.section h4:before {
    display: none;
}

.section h1.size-50 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 60px;
    color: var(--text-primary);
    font-family: 'Poppins', sans-serif;
    letter-spacing: -0.02em;
}

.h-50 {
    height: 40px;
}

/* Skills Section - Professional Card Design */
.mainSkill {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 32px;
    margin-top: 40px;
}

.skill-box {
    background: var(--bg-card);
    border: 2px solid var(--border-light);
    border-radius: 20px;
    padding: 36px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.skill-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.skill-box:hover::before {
    transform: scaleX(1);
}

.skill-box:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: var(--accent-primary);
}

.skill-box h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 24px;
    color: var(--text-primary);
    text-align: center;
    font-family: 'Poppins', sans-serif;
}

.box {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
}

.singleSkill {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--bg-secondary);
    padding: 10px 18px;
    border-radius: 12px;
    font-size: 0.875rem;
    color: var(--text-primary);
    border: 1px solid var(--border-light);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    font-weight: 500;
    font-family: 'Inter', sans-serif;
}

.singleSkill:hover {
    background: var(--gradient-primary);
    color: white;
    border-color: transparent;
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.singleSkill img {
    width: 22px;
    height: 22px;
    object-fit: contain;
}

/* Timeline - Professional Design */
.timeline {
    position: relative;
    padding-left: 60px;
    list-style: none;
    margin-top: 40px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--gradient-primary);
    border-radius: 4px;
}

.timeline-event {
    position: relative;
    margin-bottom: 48px;
}

.timeline-event-icon {
    position: absolute;
    left: -68px;
    top: 0;
    width: 20px;
    height: 20px;
    background: var(--accent-primary);
    border: 4px solid var(--bg-secondary);
    border-radius: 50%;
    box-shadow: 0 0 0 4px var(--accent-tertiary);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.timeline-event:hover .timeline-event-icon {
    transform: scale(1.4);
    box-shadow: 0 0 0 8px rgba(59, 130, 246, 0.2);
}

.timeline-event-copy {
    background: var(--bg-card);
    border: 2px solid var(--border-light);
    border-radius: 16px;
    padding: 32px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.timeline-event:hover .timeline-event-copy {
    transform: translateX(12px);
    box-shadow: var(--shadow-xl);
    border-color: var(--accent-primary);
}

p.timeline-event-thumbnail {
    display: inline-block;
    background: var(--gradient-primary);
    color: #ffffff !important;
    padding: 6px 16px;
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 16px;
    font-family: 'Inter', sans-serif;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.timeline-event-copy h3 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--text-primary);
    font-family: 'Poppins', sans-serif;
}

.timeline-event-copy h4 {
    font-size: 1.125rem;
    color: var(--accent-primary);
    margin-bottom: 16px;
    font-weight: 600;
    text-transform: none;
    letter-spacing: normal;
    margin-left: 0;
    font-family: 'Inter', sans-serif;
}

.timeline-event-copy h4:before {
    display: none;
}

.timeline-event-copy p {
    color: var(--text-secondary);
    line-height: 1.8;
    font-size: 1rem;
}

.experience-counter {
    font-size: 1.5rem;
    color: var(--accent-primary);
    margin-left: 20px;
    font-weight: 400;
    font-family: 'Poppins', sans-serif;
}

.counter-number {
    font-weight: 800;
    font-size: 2.25rem;
}

/* Projects Section - Professional Portfolio Grid */
.portfolio-carousel-wrapper {
    margin-top: 40px;
}

.carousel-item {
    padding: 16px;
}

.portfolio_item {
    display: block;
    background: var(--bg-card);
    border: 2px solid var(--border-light);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    position: relative;
}

.portfolio_item:hover {
    transform: translateY(-12px);
    box-shadow: var(--shadow-xl);
    border-color: var(--accent-primary);
}

.project-image-container {
    position: relative;
    width: 100%;
    padding-bottom: 65%;
    overflow: hidden;
    background: var(--bg-secondary);
}

.project-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.portfolio_item:hover .project-image {
    transform: scale(1.1);
}

.portfolio_item_hover {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.95) 0%, rgba(102, 126, 234, 0.95) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.portfolio_item:hover .portfolio_item_hover {
    opacity: 1;
}

.item_info {
    text-align: center;
    padding: 24px;
}

.item_info span {
    display: block;
    color: white;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 12px;
    font-family: 'Poppins', sans-serif;
}

.item_info em {
    display: inline-block;
    background: rgba(255, 255, 255, 0.25);
    color: white;
    padding: 6px 16px;
    border-radius: 8px;
    font-size: 0.875rem;
    font-style: normal;
    font-weight: 500;
    backdrop-filter: blur(10px);
}

/* Contact Section - Professional Form Design */
#contact h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 12px;
    margin-top: 32px;
    color: var(--text-primary);
    font-family: 'Poppins', sans-serif;
}

#contact p {
    color: var(--text-secondary);
    margin-bottom: 20px;
    font-size: 1rem;
    line-height: 1.6;
}

.social {
    display: flex;
    gap: 14px;
    list-style: none;
    padding: 0;
    margin-top: 24px;
    flex-wrap: wrap;
}

.social li a {
    width: 48px;
    height: 48px;
    background: var(--bg-secondary);
    border: 2px solid var(--border-light);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
    font-size: 1.25rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
}

.social li a:hover {
    background: var(--gradient-primary);
    color: white;
    border-color: transparent;
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.contact-bg {
    background: var(--bg-card);
    border: 2px solid var(--border-light);
    border-radius: 20px;
    padding: 40px;
    box-shadow: var(--shadow-lg);
}

.form-control {
    width: 100%;
    padding: 16px 20px;
    margin-bottom: 20px;
    background: var(--bg-secondary);
    border: 2px solid var(--border-light);
    border-radius: 12px;
    color: var(--text-primary);
    font-size: 1rem;
    font-family: 'Inter', sans-serif;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-weight: 400;
}

.form-control:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
    background: var(--bg-card);
}

.form-control::placeholder {
    color: var(--text-muted);
}

textarea.form-control {
    resize: vertical;
    min-height: 140px;
}

.btn-glance {
    width: 100%;
    padding: 18px;
    background: var(--gradient-primary);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-family: 'Inter', sans-serif;
    box-shadow: 0 4px 14px rgba(102, 126, 234, 0.4);
}

.btn-glance:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.6);
}

.btn-glance:active {
    transform: translateY(0);
}

#success p {
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    color: #155724;
    padding: 18px 24px;
    border-radius: 12px;
    margin-top: 20px;
    border: 2px solid #c3e6cb;
    font-weight: 500;
    box-shadow: var(--shadow-sm);
}

#error p {
    background: linear-gradient(135deg, #f8d7da 0%, #f5c6cb 100%);
    color: #721c24;
    padding: 18px 24px;
    border-radius: 12px;
    margin-top: 20px;
    border: 2px solid #f5c6cb;
    font-weight: 500;
    box-shadow: var(--shadow-sm);
}

/* Back to Top - Professional Style */
#back-top {
    position: fixed;
    bottom: 32px;
    right: 32px;
    z-index: 999;
    display: none;
}

#back-top a {
    width: 56px;
    height: 56px;
    background: var(--gradient-primary);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-lg);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    border: none;
    cursor: pointer;
}

#back-top a:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-xl);
}

#back-top a span {
    display: none;
}

.scroll-to-top {
    fill: white;
    width: 24px;
    height: 24px;
}

/* Responsive Design - Professional Breakpoints with Enhanced Visibility */
@media (max-width: 1024px) {
    .disply-table {
        gap: 70px;
    }

    .table-cell h1 {
        font-size: 4rem;
    }

    .table-cell p {
        font-size: 1.1875rem;
    }
}

@media (max-width: 991px) {
    .disply-table {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 60px;
    }

    #profilediv {
        order: -1;
    }

    #profilediv::before {
        display: none;
    }

    #profilepic {
        max-width: 450px;
        height: 550px;
    }

    .table-cell h1 {
        font-size: 3.5rem;
    }

    .table-cell h4 {
        font-size: 1rem;
    }

    .table-cell h4::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .table-cell p {
        margin-left: auto;
        margin-right: auto;
        font-size: 1.1875rem;
    }

    #herobtn {
        justify-content: center;
    }

    .section {
        padding: 80px 24px;
    }
}

@media (max-width: 768px) {
    #home {
        padding: 120px 24px 70px;
    }

    .table-cell h1 {
        font-size: 3rem;
        margin-bottom: 24px;
    }

    .table-cell h4 {
        font-size: 0.9375rem;
        letter-spacing: 3px;
        margin-bottom: 20px;
    }

    .table-cell p {
        font-size: 1.125rem;
        margin-bottom: 32px;
    }

    .section h1.size-50 {
        font-size: 2.5rem;
    }

    .mainSkill {
        grid-template-columns: 1fr;
    }

    .timeline {
        padding-left: 40px;
    }

    .timeline-event-icon {
        left: -50px;
    }

    #profilepic {
        max-width: 400px;
        height: 480px;
    }

    .theme-toggle-btn {
        top: 16px;
        right: 16px;
        width: 50px;
        height: 50px;
    }

    .experience-counter {
        display: block;
        margin-left: 0;
        margin-top: 12px;
        font-size: 1.375rem;
    }

    .section {
        padding: 60px 20px;
    }

    .contact-bg {
        padding: 32px 24px;
    }

    .resumediv a {
        padding: 16px 36px;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    #home {
        padding: 100px 20px 60px;
    }

    .table-cell h1 {
        font-size: 2.5rem;
        margin-bottom: 20px;
    }

    .table-cell h4 {
        font-size: 0.875rem;
        letter-spacing: 2.5px;
        margin-bottom: 18px;
    }

    .table-cell p {
        font-size: 1.0625rem;
        line-height: 1.75;
        margin-bottom: 28px;
    }

    .section h1.size-50 {
        font-size: 2rem;
    }

    .resumediv a {
        padding: 15px 32px;
        font-size: 0.9375rem;
    }

    #profilepic {
        max-width: 100%;
        height: 420px;
    }

    .timeline-event-copy {
        padding: 24px;
    }

    .skill-box {
        padding: 28px;
    }

    #back-top a {
        width: 50px;
        height: 50px;
    }

    .theme-toggle-btn {
        width: 48px;
        height: 48px;
    }

    .disply-table {
        gap: 40px;
    }
}

/* Slick Carousel - Professional Styling */
.slick-dots {
    bottom: -48px;
}

.slick-dots li {
    margin: 0 6px;
}

.slick-dots li button:before {
    color: var(--accent-primary);
    opacity: 0.3;
    font-size: 10px;
    transition: all 0.3s ease;
}

.slick-dots li.slick-active button:before {
    opacity: 1;
    transform: scale(1.3);
}

.slick-prev,
.slick-next {
    width: 44px;
    height: 44px;
    background: var(--bg-card);
    border: 2px solid var(--border-light);
    border-radius: 12px;
    z-index: 1;
    transition: all 0.3s ease;
}

.slick-prev:hover,
.slick-next:hover {
    background: var(--accent-primary);
    border-color: var(--accent-primary);
}

.slick-prev {
    left: -60px;
}

.slick-next {
    right: -60px;
}

.slick-prev:before,
.slick-next:before {
    color: var(--text-primary);
    opacity: 1;
    font-size: 20px;
}

.slick-prev:hover:before,
.slick-next:hover:before {
    color: white;
}

/* Professional Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(40px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.animate-in {
    animation: fadeInUp 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Professional Loading States */
.btn-glance:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Professional Focus Styles */
*:focus-visible {
    outline: 2px solid var(--accent-primary);
    outline-offset: 2px;
}

/* Professional Selection */
::selection {
    background: var(--accent-primary);
    color: white;
}

::-moz-selection {
    background: var(--accent-primary);
    color: white;
}

/* ============================================
   Global Header & Footer Overrides (Dark Mode Fixes)
   ============================================ */

/* Navbar / Header */
.navbar-fixed-top {
    background-color: var(--bg-card) !important;
    border-bottom: 1px solid var(--border-light);
    backdrop-filter: blur(10px);
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

.navbar-fixed-top .active,
.navbar-fixed-top a,
.navbar-nav>li>a {
    color: var(--text-primary) !important;
    transition: color 0.3s ease;
}

.navbar-fixed-top h1,
.navbar-fixed-top h2,
.navbar-fixed-top h3,
.navbar-fixed-top h4,
.navbar-fixed-top h5,
.navbar-fixed-top h6 {
    color: var(--text-primary) !important;
}

.navbar-fixed-top .active:hover,
.navbar-fixed-top a:hover,
.navbar-nav>li>a:hover {
    color: var(--accent-primary) !important;
}

/* Footer */
footer {
    background-color: #1e293b !important;
    color: var(--text-secondary) !important;
    border-top: 1px solid var(--border-light);
    padding: 20px 0;
    font-size: 16px;
}

footer h1,
footer h2,
footer h3,
footer h4,
footer h5,
footer h6 {
    color: var(--text-primary) !important;
    font-size: 28px;
    /* Increased heading size */
}

footer p,
footer li,
footer span {
    color: var(--text-secondary) !important;
    font-size: 20px;
    /* Increased text size */
    line-height: 1.8;
}

footer a {
    color: var(--text-primary) !important;
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: 20px;
    /* Increased link size */
}

footer a:hover {
    color: var(--accent-primary) !important;
}

.heart-icon {
    display: inline-block;
    color: #ff4d4d;
    animation: pulse-heart 1.5s infinite;
    margin: 0 5px;
}

@keyframes pulse-heart {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.2);
    }

    100% {
        transform: scale(1);
    }
}

.footer-content {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
}

.footer-content p {
    margin: 0;
    font-size: 16px;
}

@media (max-width: 768px) {
    .footer-content {
        flex-direction: column;
        text-align: center;
        justify-content: center;
    }
}

/* Form Inputs & Textareas */
input,
textarea,
select,
.form-control {
    background-color: var(--bg-secondary) !important;
    color: var(--text-primary) !important;
    border: 1px solid var(--border-medium) !important;
}

input::placeholder,
textarea::placeholder {
    color: var(--text-muted) !important;
    opacity: 1;
}

input:focus,
textarea:focus,
select:focus {
    border-color: var(--accent-primary) !important;
    background-color: var(--bg-primary) !important;
    outline: none;
}

/* General Content Fixes */
.section h1,
.section h2,
.section h3,
.section h4,
.section h5,
.section h6 {
    color: var(--text-primary) !important;
}

.section p,
.section li {
    color: var(--text-secondary) !important;
}

a {
    transition: color 0.3s ease;
}

/* Specific Menu & Social Overrides */
.team-member-menu li a {
    color: var(--text-primary) !important;
    font-weight: 600;
}

.team-member-menu li a:hover {
    color: var(--accent-primary) !important;
}

ul.social li a {
    color: var(--text-primary) !important;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    width: 32px;
    height: 32px;
}

ul.social li a:hover {
    background: var(--accent-primary) !important;
    color: white !important;
}

#contact h3,
#contact h5,
#contact h6 {
    color: var(--text-primary) !important;
    font-size: 28px;
}

#contact p,
#contact li,
#contact span {
    color: var(--text-secondary) !important;
    font-size: 20px;
}

/* Contact Form Specific Styles */
#contact-form textarea {
    height: 120px;
}

#success,
#error {
    display: none;
}

/* Member SEO Title Optimization */
.member-seo-title {
    display: flex;
    flex-direction: column;
    margin-bottom: 24px;
}

.member-designation {
    font-size: 1.5rem;
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 500;
    margin-top: 5px;
}