/* Font Face Declarations - Optimized with Fallbacks */
/* Note: Google Fonts are loaded via preload in header.php for better performance */

/* Layout Shift Prevention */
img, video, iframe, embed, object {
    max-width: 100%;
    height: auto;
    /* Prevent layout shifts during loading */
    aspect-ratio: attr(width) / attr(height);
}

/* Specific aspect ratios for known images */
.about-image img {
    aspect-ratio: 382 / 509;
    width: 100%;
    height: auto;
}

.project-image img {
    aspect-ratio: 16 / 9;
    width: 100%;
    height: auto;
    object-fit: cover;
}

/* Prevent layout shifts for dynamic content */
.hero-description, .section-title {
    min-height: 1.2em;
    /* Reserve space to prevent layout shifts */
    contain: layout;
}

/* Font loading optimization */
@font-face {
    font-family: 'Inter';
    font-display: swap;
    /* Preload critical font weights */
    font-weight: 400 700;
}

/* Local Inter Font Family - Fallback for Offline/Performance */
@font-face {
    font-family: 'Inter Local';
    src: url('../fonts/inter/Inter-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
    font-family: 'Inter Local';
    src: url('../fonts/inter/Inter-Medium.ttf') format('truetype');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Skip corrupted SemiBold font and use Bold as fallback */
@font-face {
    font-family: 'Inter Local';
    src: url('../fonts/inter/Inter-Bold.ttf') format('truetype');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
    font-family: 'Inter Local';
    src: url('../fonts/inter/Inter-Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
    font-family: 'Inter Local';
    src: url('../fonts/inter/Inter-Light.ttf') format('truetype');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* JetBrains Mono Font Family */
@font-face {
    font-family: 'JetBrains Mono';
    src: url('../fonts/jetbrains-mono/JetBrainsMono-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'JetBrains Mono';
    src: url('../fonts/jetbrains-mono/JetBrainsMono-SemiBold.ttf') format('truetype');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

/* Montserrat Font Family */
@font-face {
    font-family: 'Montserrat';
    src: url('../fonts/montserrat/Montserrat-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Montserrat';
    src: url('../fonts/montserrat/Montserrat-Medium.ttf') format('truetype');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Montserrat';
    src: url('../fonts/montserrat/Montserrat-SemiBold.ttf') format('truetype');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Montserrat';
    src: url('../fonts/montserrat/Montserrat-Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Montserrat';
    src: url('../fonts/montserrat/Montserrat-Light.ttf') format('truetype');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

/* Poppins Font Family */
@font-face {
    font-family: 'Poppins';
    src: url('../fonts/poppins/Poppins-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Poppins';
    src: url('../fonts/poppins/Poppins-Medium.ttf') format('truetype');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Poppins';
    src: url('../fonts/poppins/Poppins-SemiBold.ttf') format('truetype');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Poppins';
    src: url('../fonts/poppins/Poppins-Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Poppins';
    src: url('../fonts/poppins/Poppins-Light.ttf') format('truetype');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

/* Roboto Font Family */
@font-face {
    font-family: 'Roboto';
    src: url('../fonts/roboto/Roboto-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Roboto';
    src: url('../fonts/roboto/Roboto-Medium.ttf') format('truetype');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Roboto';
    src: url('../fonts/roboto/Roboto-Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Roboto';
    src: url('../fonts/roboto/Roboto-Light.ttf') format('truetype');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

/* Source Code Pro Font Family */
@font-face {
    font-family: 'Source Code Pro';
    src: url('../fonts/source-code-pro/SourceCodePro-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Source Code Pro';
    src: url('../fonts/source-code-pro/SourceCodePro-SemiBold.ttf') format('truetype');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

/* PixelifySans Font Family */
@font-face {
    font-family: 'PixelifySans';
    src: url('../fonts/static/PixelifySans-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'PixelifySans';
    src: url('../fonts/static/PixelifySans-Medium.ttf') format('truetype');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'PixelifySans';
    src: url('../fonts/static/PixelifySans-SemiBold.ttf') format('truetype');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'PixelifySans';
    src: url('../fonts/static/PixelifySans-Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

/* Pixel Stars Background */
.stars-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: transparent;
    pointer-events: none;
    /* Ensure canvas is visible */
    opacity: 1;
    visibility: visible;
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Fix for H1UserAgentFontSizeInSection deprecation warning */
/* Explicit h1 styling to replace deprecated browser defaults */
h1 {
    margin-block: 0.67em;
    font-size: 2em;
    font-weight: bold;
    line-height: 1.2;
}

/* Ensure h1 elements maintain consistent styling regardless of nesting */
:where(h1) {
    margin-block: 0.67em;
    font-size: 2em;
    font-weight: bold;
    line-height: 1.2;
}

body {
    font-family: 'Inter', 'Inter Local', 'Roboto', 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background-color: transparent;
    color: #ffffff;
    line-height: 1.6;
    overflow-x: hidden;
    /* Prevent layout shifts during font loading */
    font-display: swap;
    /* Ensure consistent text rendering */
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Styles */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: rgba(18, 18, 18, 0.95);
    backdrop-filter: blur(15px);
    z-index: 1000;
    padding: 1.2rem 0;
    display: flex;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    /* Disable text selection for the header */
    -webkit-user-select: none; /* Safari */
    -moz-user-select: none;    /* Firefox */
    -ms-user-select: none;     /* Internet Explorer/Edge */
    user-select: none;         /* Standard Syntax */
    /* Disable drag and drop for the header */
    -webkit-user-drag: none;
    -khtml-user-drag: none;
    -moz-user-drag: none;
    -o-user-drag: none;
    user-drag: none;
}

.header.scrolled {
    padding: 0.5rem 0;
    background-color: rgba(18, 18, 18, 0.98);
    backdrop-filter: blur(20px);
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex: 1;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    margin-right: 20px;
}

.logo {
    flex-shrink: 0;
    margin-left: 60px;
    
}

.logo a {
    color: #5222D0;
    font-size: 2.4rem;
    font-weight: 700;
    text-decoration: none;
    transition: color 0.3s ease;
    letter-spacing: -0.5px;
    -webkit-user-drag: none;
    -khtml-user-drag: none;
    -moz-user-drag: none;
    -o-user-drag: none;
    user-drag: none;
}

.logo a:hover {
    color: #A78BFA;
}

.nav {
    flex: 1;
    display: flex;
    justify-content: center;
    margin: 0 auto;
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 3rem;
    margin: 0;
    padding: 0;
}

.nav-link {
    color: #ffffff;
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    transition: color 0.3s ease;
    position: relative;
    padding: 0.5rem 0;
    /* Disable drag and drop for navigation links */
    -webkit-user-drag: none;
    -khtml-user-drag: none;
    -moz-user-drag: none;
    -o-user-drag: none;
    user-drag: none;
    /* Disable text selection for navigation links */
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.nav-link:hover {
    color: #8B5CF6;
}

.nav-link.active {
    color: #8B5CF6;
    font-weight: 600;
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #8B5CF6;
}

.social-icons {
    display: flex;
    gap: 1.5rem;
    flex-shrink: 0;
    margin-left: auto;
    margin-right: 60px;
}

.social-icon {
    color: #ffffff;
    font-size: 1.3rem;
    text-decoration: none;
    transition: color 0.3s ease;
    opacity: 0.9;
    /* Disable drag and drop for social icons */
    -webkit-user-drag: none;
    -khtml-user-drag: none;
    -moz-user-drag: none;
    -o-user-drag: none;
    user-drag: none;
    /* Disable text selection for social icons */
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    /* Improve touch interaction on mobile */
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    /* Ensure proper touch target size */
    min-width: 44px;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
}

.social-icon:hover {
    color: #8B5CF6;
    opacity: 1;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.3);
}

/* Enhanced SEO and accessibility for social icons */
.social-icon:focus {
    outline: 2px solid #8B5CF6;
    outline-offset: 2px;
    border-radius: 4px;
}

.social-icon:focus:not(:focus-visible) {
    outline: none;
}

/* Screen reader only text */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Enhanced social icons container for better SEO */
.social-icons {
    display: flex;
    gap: 1.5rem;
    flex-shrink: 0;
    margin-left: auto;
    margin-right: 60px;
    /* Improved semantic structure */
    list-style: none;
    padding: 0;
}

/* Social icon specific hover effects for better UX */
.social-icon[href*="github"]:hover {
    color: #333;
    background: rgba(51, 51, 51, 0.1);
    border-radius: 4px;
    padding: 4px;
    margin: -4px;
}

.social-icon[href*="x.com"]:hover,
.social-icon[href*="twitter"]:hover {
    color: #1DA1F2;
    background: rgba(29, 161, 242, 0.1);
    border-radius: 4px;
    padding: 4px;
    margin: -4px;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: 120px; /* Increased to ensure greeting is never hidden under header */
    /* Disable text selection for the hero section */
    -webkit-user-select: none; /* Safari */
    -moz-user-select: none;    /* Firefox */
    -ms-user-select: none;     /* Internet Explorer/Edge */
    user-select: none;         /* Standard Syntax */
    /* Prevent layout shifts */
    contain: layout style;
    /* Improve touch scrolling on mobile */
    -webkit-overflow-scrolling: touch;
    /* Ensure proper viewport handling */
    width: 100%;
    overflow-x: hidden;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.samurai-container {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    margin-top: -0rem;
    min-height: 400px;
    justify-content: space-between;
}

.samurai {
    width: 96px;
    height: 96px;
    background-repeat: no-repeat;
    image-rendering: pixelated;
    transform: scale(6);
    overflow: hidden;
    border-radius: 8px;
    padding: 1rem;
    /* Improve touch interaction on mobile */
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    cursor: pointer;
    /* Ensure proper touch target size */
    min-width: 44px;
    min-height: 44px;
}

.samurai.idle {
    background-image: url("../images/samurai/s__IDLE.png");
    animation: idle 1s steps(10, end) infinite;
}

.samurai.run {
    background-image: url("../images/samurai/s_RUN.png");
    animation: run 1s steps(16) infinite;
}

.samurai.attack {
    background-image: url("../images/samurai/s__ATTACK1.png");
    animation: attack 0.35s steps(7, end) infinite;
}

.samurai.click-feedback {
    transform: scale(6.2) !important;
    transition: transform 0.1s ease;
}

.samurai-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    flex: 1;
}

.samurai-controls {
    text-align: center;
    color: #ffffff;
    font-size: 0.9rem;
    font-weight: 600;
    opacity: 1;
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid rgba(139, 92, 246, 0.3);
    width: 100%;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
}

/* Samurai Dialogue Box Styles */
.samurai-dialogue-box {
    position: absolute;
    top: -40px;
    left: 50%;
    transform: translateX(-50%);
    background: #1a1a1a;
    border: 3px solid #8B5CF6;
    border-radius: 8px;
    padding: 16px;
    min-width: 280px;
    max-width: 320px;
    box-shadow: 0 8px 32px rgba(139, 92, 246, 0.3);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 100;
    image-rendering: pixelated;
}

.samurai-dialogue-box.show {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(-10px);
}

.dialogue-content {
    position: relative;
}

.dialogue-text {
    color: #ffffff;
    font-family: 'PixelifySans', 'Inter', 'Inter Local', 'Roboto', 'Poppins', sans-serif;
    font-size: 16px;
    font-weight: 500;
    line-height: 1.3;
    text-align: center;
    margin: 0;
    word-wrap: break-word;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
    letter-spacing: 0.5px;
}

.dialogue-loading {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 8px 0;
}

.loading-dots {
    display: flex;
    gap: 4px;
}

.loading-dots span {
    width: 8px;
    height: 8px;
    background: #8B5CF6;
    border-radius: 50%;
    animation: loading-bounce 1.4s ease-in-out infinite both;
}

.loading-dots span:nth-child(1) {
    animation-delay: -0.32s;
}

.loading-dots span:nth-child(2) {
    animation-delay: -0.16s;
}

.loading-dots span:nth-child(3) {
    animation-delay: 0s;
}

@keyframes loading-bounce {
    0%, 80%, 100% {
        transform: scale(0);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

.dialogue-arrow {
    position: absolute;
    bottom: -12px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 12px solid transparent;
    border-right: 12px solid transparent;
    border-top: 12px solid #8B5CF6;
}

.dialogue-arrow::after {
    content: '';
    position: absolute;
    top: -15px;
    left: -9px;
    width: 0;
    height: 0;
    border-left: 9px solid transparent;
    border-right: 9px solid transparent;
    border-top: 9px solid #1a1a1a;
}

/* Dialogue box animation */
@keyframes dialogue-pulse {
    0% {
        box-shadow: 0 8px 32px rgba(139, 92, 246, 0.3);
    }
    50% {
        box-shadow: 0 8px 32px rgba(139, 92, 246, 0.6);
    }
    100% {
        box-shadow: 0 8px 32px rgba(139, 92, 246, 0.3);
    }
}

.samurai-dialogue-box.generating {
    animation: dialogue-pulse 2s ease-in-out infinite;
}

@keyframes idle {
    0% {
        background-position-x: 0;
    }
    100% {
        background-position-x: -960px;
    }
}

@keyframes run {
    0% {
        background-position-x: 0;
    }
    100% {
        background-position-x: -1536px;
    }
}

@keyframes attack {
    0% {
        background-position-x: 0;
    }
    100% {
        background-position-x: -672px;
    }
}

.hero-text {
    max-width: 500px;
}

.greeting {
    font-size: 1.1rem;
    color: #ffffff;
    margin-bottom: 0.5rem;
    margin-top: 1rem; /* Additional top margin to ensure visibility */
}

/* Hero Title with Typing Animation */
.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    min-height: 1.2em; /* Prevent layout shift during typing */
    display: flex;
    align-items: center;
    position: relative;
}

.typing-text {
    color: #8B5CF6;
    font-weight: 700;
    text-shadow: 0 0 20px rgba(139, 92, 246, 0.5);
    letter-spacing: 2px;
}

.typing-cursor {
    color: #8B5CF6;
    font-weight: 300;
    animation: blink 1s infinite;
    margin-left: 2px;
    font-size: 3.5rem;
    line-height: 1;
}

@keyframes blink {
    0%, 50% {
        opacity: 1;
    }
    51%, 100% {
        opacity: 0;
    }
}

/* Typing animation effect */
.typing-text.typing {
    border-right: 2px solid #8B5CF6;
    animation: typing-glow 0.1s ease-in-out;
}

@keyframes typing-glow {
    0% {
        text-shadow: 0 0 20px rgba(139, 92, 246, 0.5);
    }
    50% {
        text-shadow: 0 0 30px rgba(139, 92, 246, 0.8);
    }
    100% {
        text-shadow: 0 0 20px rgba(139, 92, 246, 0.5);
    }
}


.dot {
    color: #8B5CF6;
}

.hero-description {
    font-size: 1.2rem;
    color: #ffffff;
    margin-bottom: 2rem;
    line-height: 1.6;
    text-align: left;
}

.highlight {
    color: #8B5CF6;
    font-weight: 600;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

.btn {
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    /* Disable drag and drop for buttons */
    -webkit-user-drag: none;
    -khtml-user-drag: none;
    -moz-user-drag: none;
    -o-user-drag: none;
    user-drag: none;
    /* Disable text selection for buttons */
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    /* Improve touch interaction on mobile */
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    /* Ensure buttons are large enough for touch */
    min-height: 44px;
    min-width: 44px;
}

.btn-primary {
    background: linear-gradient(135deg, #8B5CF6 0%, #7B42F6 100%);
    color: #ffffff;
    border: none;
    border-radius: 50px;
}

.btn-primary:hover {
    background-color: #7C3AED;
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: transparent;
    color: #ffffff;
    border: 2px solid #5222D0;
    border-radius: 50px;
}

.btn-secondary:hover {
    background-color: #ffffff;
    color: #1A1A1A;
    transform: translateY(-2px);
}

.hero-social {
    display: flex;
    gap: 1rem;
}



.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    color: #ffffff;
    font-size: 1.5rem;
    animation: bounce 2s infinite;
    cursor: pointer;
    transition: all 0.3s ease;
    opacity: 0.8;
    z-index: 10;
}

.scroll-indicator:hover {
    opacity: 1;
    transform: translateX(-50%) translateY(3px);
    color: #A78BFA;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-10px);
    }
    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

/* Section Styles */
.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 3rem;
    color: #ffffff;
    position: relative;
}

/* Ensure all sections maintain full width */
.about, .skills, .projects, .faq, .contact {
    width: 100%;
    box-sizing: border-box;
    clear: both;
    overflow: hidden;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: #8B5CF6;
    border-radius: 2px;
}

/* About Section */
.about {
    padding: 5rem 0;
    background-color: #1e1e1e;
    overflow: hidden;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-image {
    order: 1;
    position: relative;
}



.about-image img {
    width: 100%;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    transform: scale(0.7);
    transition: all 0.3s ease;
    filter: brightness(0.9);
}

.about-image img:hover {
    transform: scale(0.8) rotate(2deg);
    box-shadow: 0 25px 50px rgba(139, 92, 246, 0.2);
    filter: brightness(1.1);
    animation-play-state: paused;
}



.about-text {
    order: 2;
}

.about-title {
    font-size: 2.2rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 0.5rem;
    line-height: 1.2;
    position: relative;
}

.about-title::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, #8B5CF6, #A855F7);
}

.about-location {
    font-size: 1.1rem;
    color: #A78BFA;
    margin-bottom: 2rem;
    font-weight: 500;
}



.about-description p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    color: #F3F4F6;
    line-height: 1.7;
    transition: all 0.3s ease;
    position: relative;
    padding-left: 20px;
    font-weight: 400;
}

.about-description p::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: #8B5CF6;
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.3s ease;
}



.about-description p:hover::before {
    opacity: 1;
    transform: translateX(0);
}

.about-description p:hover {
    padding-left: 25px;
    color: #ffffff;
}

/* Ensure strong elements have good contrast */
.about-description strong,
.contact-info strong,
.faq-answer strong {
    color: #ffffff;
    font-weight: 600;
}

/* About Statistics */
.about-stats {
    display: flex;
    justify-content: space-between;
    margin-top: 2rem;
    padding: 2rem;
}

.stat-item {
    text-align: center;
    flex: 1;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.stat-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(139, 92, 246, 0.1), transparent);
    transition: left 0.5s ease;
}

.stat-item:hover::before {
    left: 100%;
}



.stat-item:hover {
    transform: translateY(-5px) scale(1.05);
}

.stat-item:hover .stat-number {
    color: #ffffff;
    text-shadow: 0 0 20px rgba(139, 92, 246, 0.8);
}

.stat-item:hover .stat-label {
    color: #8B5CF6;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: #8B5CF6;
    margin-bottom: 0.5rem;
    line-height: 1;
    transition: all 0.3s ease;
    display: inline-block;
}

.stat-label {
    font-size: 0.9rem;
    color: #9CA3AF;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

/* About Section Animations */
@keyframes slideInFromBottom {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInFromLeft {
    from {
        opacity: 0;
        transform: translateX(-50px) scale(0.8);
    }
    to {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
}

@keyframes slideInFromRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Fallback: Ensure sections are visible by default if JavaScript fails */
.about-content,
.skills-grid,
.projects-grid,
.contact-content {
    /* Default visible state - will be overridden by JavaScript if it loads */
    opacity: 1 !important;
    transform: translateY(0) !important;
}

/* Only apply hidden state when JavaScript is confirmed to be working */
.js-loaded .about-content,
.js-loaded .skills-grid,
.js-loaded .projects-grid,
.js-loaded .contact-content {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

/* Responsive animations for mobile */
@media (max-width: 768px) {
    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .about-image {
        order: 2;
        animation: slideInFromBottom 0.8s ease-out 0.3s forwards;
    }
    
    .about-text {
        order: 1;
        animation: slideInFromBottom 0.8s ease-out 0.6s forwards;
    }
    
    .about-stats {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .stat-item {
        padding: 1rem;
        border-radius: 10px;
        background: rgba(139, 92, 246, 0.1);
        border: 1px solid rgba(139, 92, 246, 0.2);
    }
    
    .stat-item:hover {
        background: rgba(139, 92, 246, 0.15);
        border-color: rgba(139, 92, 246, 0.4);
    }
}

/* Skills Section */
.skills {
    padding: 5rem 0;
    background-color: #0f0f0f;
}

.skills-header {
    text-align: center;
    margin-bottom: 3rem;
}

.skills-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #f8f9fa;
    margin-bottom: 0.5rem;
    position: relative;
}

.skills-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #8B5CF6, #EC4899);
    border-radius: 2px;
}

.skills-intro {
    font-size: 1.1rem;
    color: #f8f9fa !important;
    margin-top: 1rem;
    font-weight: 600;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
}

.skills-filters {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.filter-btn {
    background: transparent;
    border: 1px solid #374151;
    color: #D1D5DB;
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.filter-btn:hover {
    border-color: #8B5CF6;
    color: #8B5CF6;
}

.filter-btn.active {
    background: linear-gradient(135deg, #8B5CF6, #EC4899);
    border-color: transparent;
    color: #ffffff;
}

.skills-grid {
    display: grid;
    grid-template-rows: repeat(2, 1fr);
    grid-template-columns: repeat(auto-fit, 120px);
    gap: 1.5rem;
    max-width: 100%;
    margin: 0 auto;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.skill-card {
    background-color: #1F2937;
    border-radius: 12px;
    padding: 1.5rem 1rem;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    border: 1px solid transparent;
}

.skill-card:hover {
    transform: translateY(-8px) scale(1.02);
    border-color: #8B5CF6;
    box-shadow: 0 15px 35px rgba(139, 92, 246, 0.3);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.skill-icon {
    font-size: 2.5rem;
    margin-bottom: 0.75rem;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 60px;
}

.skill-icon i,
.skill-icon svg {
    color: #8B5CF6;
    transition: all 0.3s ease;
    filter: drop-shadow(0 2px 4px rgba(139, 92, 246, 0.3));
}

.skill-card:hover .skill-icon i,
.skill-card:hover .skill-icon svg {
    color: #EC4899;
    transform: scale(1.15);
    filter: drop-shadow(0 6px 12px rgba(236, 72, 153, 0.5));
}

.skill-name {
    font-size: 0.9rem;
    font-weight: 500;
    color: #f8f9fa;
    display: block;
    margin-top: 0.5rem;
}

/* Skill card animations */
.skill-card {
    opacity: 1;
    transform: scale(1) translateY(0);
    transition: all 0.3s ease;
}

.skill-card.hidden {
    opacity: 0;
    transform: scale(0.8) translateY(20px);
    pointer-events: none;
}

.skill-card.animate-in {
    animation: skillCardFadeIn 0.6s ease-out forwards;
}

@keyframes skillCardFadeIn {
    0% {
        opacity: 0;
        transform: scale(0.8) translateY(30px);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* Smooth grid layout transitions */
.skills-grid {
    transition: all 0.3s ease;
}

.skills-grid.filtering {
    opacity: 0.7;
    transform: scale(0.98);
}

/* Filter button animations */
.filter-btn {
    position: relative;
    overflow: hidden;
}

.filter-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(139, 92, 246, 0.2), transparent);
    transition: left 0.5s ease;
}

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

.filter-btn.active {
    animation: filterButtonPulse 0.3s ease-out;
}

@keyframes filterButtonPulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

/* Projects Section */
.projects {
    padding: 5rem 0;
    background-color: #111111;
}

/* Projects Grid Styles */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin: 4rem 0;
    padding: 1rem 0;
}

.projects-grid .project-card {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
    animation: fadeInUp 0.6s ease forwards;
}

.projects-grid .project-card:nth-child(1) { animation-delay: 0.1s; }
.projects-grid .project-card:nth-child(2) { animation-delay: 0.2s; }
.projects-grid .project-card:nth-child(3) { animation-delay: 0.3s; }
.projects-grid .project-card:nth-child(4) { animation-delay: 0.4s; }
.projects-grid .project-card:nth-child(5) { animation-delay: 0.5s; }
.projects-grid .project-card:nth-child(6) { animation-delay: 0.6s; }
.projects-grid .project-card:nth-child(7) { animation-delay: 0.7s; }
.projects-grid .project-card:nth-child(8) { animation-delay: 0.8s; }
.projects-grid .project-card:nth-child(9) { animation-delay: 0.9s; }
.projects-grid .project-card:nth-child(10) { animation-delay: 1.0s; }



/* Responsive Design for Projects Grid */
@media (max-width: 1024px) {
    .projects-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
}

@media (max-width: 480px) {
    .projects-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

.project-card {
    background-color: #1F2937;
    border-radius: 15px;
    overflow: hidden;
    transition: transform 0.3s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    display: block;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}

.project-card:hover {
    transform: translateY(-5px);
    text-decoration: none;
    color: inherit;
}

/* Enhanced hover effects for clickable project cards */
.project-card[href]:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(139, 92, 246, 0.3);
}

/* Focus styles for accessibility */
.project-card:focus {
    outline: 2px solid #8B5CF6;
    outline-offset: 2px;
}

/* Active state for click feedback */
.project-card:active {
    transform: translateY(-2px) scale(0.98);
}

.project-card {
    opacity: 1;
    transform: translateY(0);
}

.project-image {
    height: 200px;
    overflow: hidden;
    position: relative;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.project-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #8B5CF6, #A78BFA);
    color: white;
    font-size: 3rem;
}

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    
}

.project-card:hover .project-overlay {
    opacity: 1;
}

.project-content {
    padding: 1.5rem;
}

.project-title {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: #ffffff;
}

.project-description {
    color: #D1D5DB;
    margin-bottom: 1rem;
    line-height: 1.5;
}

.project-date {
    color: #ffffff !important;
    font-size: 0.9rem;
    font-weight: 700;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.9);
    background: rgba(0, 0, 0, 0.6);
    padding: 2px 6px;
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: inline-block;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.project-tech span {
    background-color: #8B5CF6;
    color: #ffffff;
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.8rem;
}

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

/* Project link in overlay (icon style) */
.project-overlay .project-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: rgba(139, 92, 246, 0.9);
    color: white;
    border-radius: 50%;
    text-decoration: none;
    transition: all 0.3s ease;
    margin: 0 5px;
    pointer-events: none;
}

    /* Add a subtle indicator for clickable projects */
.project-card[href]::after {
    content: "Click to view";
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(139, 92, 246, 0.9);
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 500;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    z-index: 10;
}

.project-card[href]:hover::after {
    opacity: 1;
}

.project-overlay .project-link:hover {
    background: rgba(139, 92, 246, 1);
    transform: scale(1.1);
    text-decoration: none;
    color: white;
}

/* Project link in content area (text style) */
.project-content .project-link {
    color: #8B5CF6;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.project-content .project-link:hover {
    color: #A78BFA;
}

.project-link-disabled {
    color: #6B7280;
    cursor: not-allowed;
    opacity: 0.6;
}

.project-link-disabled:hover {
    color: #6B7280;
    opacity: 0.8;
}

/* No Projects Message */
.no-projects-message {
    text-align: center;
    padding: 4rem 2rem;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.1), rgba(167, 139, 250, 0.1));
    border: 2px dashed rgba(139, 92, 246, 0.3);
    border-radius: 20px;
    margin: 2rem 0;
}

.no-projects-icon {
    font-size: 4rem;
    color: #8B5CF6;
    margin-bottom: 1.5rem;
    opacity: 0.8;
}

.no-projects-title {
    font-size: 2rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #8B5CF6, #A78BFA);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.no-projects-description {
    font-size: 1.1rem;
    color: #D1D5DB;
    margin-bottom: 2rem;
    line-height: 1.6;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.no-projects-cta {
    margin-top: 2rem;
}

.no-projects-cta .btn {
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 12px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.3);
}

.no-projects-cta .btn:hover {
    box-shadow: 0 6px 20px rgba(139, 92, 246, 0.4);
}



/* FAQ Section */
.faq {
    padding: 5rem 0;
    background-color: rgba(18, 18, 18, 0.6);
    position: relative;
}

.faq::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(37, 99, 235, 0.3), transparent);
}

.faq-content {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
}

.faq-item {
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    margin-bottom: 16px;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    overflow: hidden;
    position: relative;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    opacity: 1;
    transform: translateY(0);
}

.faq-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(37, 99, 235, 0.5), transparent);
    transform: scaleX(0);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-item:hover::before {
    transform: scaleX(1);
}

/* Simple hover effect */
.faq-item:hover {
    background-color: rgba(255, 255, 255, 0.08);
    border-color: rgba(37, 99, 235, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.faq-item:hover {
    transform: translateY(-5px);
    transition: all 0.3s ease;
}


.faq-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
}

.faq-header:hover {
    background-color: rgba(255, 255, 255, 0.02);
}

.faq-question {
    font-size: 1.1rem;
    font-weight: 600;
    color: #ffffff;
    margin: 0;
    transition: color 0.3s ease;
    flex: 1;
    padding-right: 16px;
    line-height: 1.4;
}

.faq-item:hover .faq-question {
    color: #60a5fa;
}

.faq-icon {
    color: #9ca3af;
    transition: all 0.3s ease;
    transform: rotate(0deg);
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.faq-item.active .faq-icon {
    transform: rotate(180deg);
    color: #60a5fa;
}

.faq-answer-wrapper {
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
    opacity: 0;
    position: relative;
}

.faq-item.active .faq-answer-wrapper {
    max-height: 200px;
    opacity: 1;
}

.faq-answer {
    color: #F3F4F6;
    line-height: 1.6;
    font-size: 1rem;
    padding: 0 24px 24px;
    margin: 0;
    position: relative;
    font-weight: 400;
}

.faq-answer::before {
    content: '';
    position: absolute;
    left: 24px;
    top: 0;
    width: 2px;
    height: 100%;
    background: linear-gradient(180deg, rgba(37, 99, 235, 0.3), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.faq-item.active .faq-answer::before {
    opacity: 1;
}

/* FAQ Item Styles */
.faq-item {
    position: relative;
    overflow: hidden;
}

.faq-item::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(37, 99, 235, 0.1), transparent);
    transition: left 0.6s ease;
}

.faq-item:hover::after {
    left: 100%;
}

.faq-header {
    position: relative;
    z-index: 2;
}

.faq-icon svg {
    transition: all 0.3s ease;
}

.faq-item.active .faq-icon svg {
    transform: rotate(180deg);
}

.faq-answer-wrapper {
    position: relative;
    z-index: 1;
}

.faq-item:hover {
    transform: translateY(-2px);
}

/* Focus states for accessibility */
.faq-header:focus {
    /* outline: 2px solid rgba(37, 99, 235, 0.5); */
    outline-offset: 2px;
    border-radius: 8px;
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .faq-item,
    .faq-icon,
    .faq-answer-wrapper {
        animation: none !important;
        transition: none !important;
    }
    
    .faq-item.active .faq-answer-wrapper {
        max-height: none !important;
        opacity: 1 !important;
        transform: none !important;
        visibility: visible !important;
    }
}

/* Contact Section */
.contact {
    padding: 5rem 0;
    background-color: #111111;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    margin-top: 3rem;
}

.contact-info h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: #ffffff;
}

.contact-info p {
    color: #ffffff;
    margin-bottom: 2rem;
    font-weight: 400;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: #ffffff;
    font-weight: 400;
}

.contact-item i {
    color: #A78BFA;
    width: 20px;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    background-color: #374151;
    border: 2px solid #4B5563;
    border-radius: 8px;
    color: #ffffff;
    font-family: 'Inter', 'Inter Local', 'Roboto', 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    transition: border-color 0.3s ease;
    /* Disable drag and drop for form elements */
    -webkit-user-drag: none;
    -khtml-user-drag: none;
    -moz-user-drag: none;
    -o-user-drag: none;
    user-drag: none;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #8B5CF6;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #9CA3AF;
}

/* Footer */
.footer {
    background-color: #111111;
    padding: 1rem 0;
    text-align: center;
    color: #ffffff !important;
    font-size: 1rem;
    font-weight: 600;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
}

.last-updated {
    margin-top: 0.5rem;
    font-size: 0.875rem;
    color: #ffffff !important;
    font-weight: 600;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
    background: rgba(0, 0, 0, 0.5);
    padding: 2px 6px;
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: inline-block;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-list {
        display: none;
    }
    
    .faq-content {
        padding: 0 1rem;
    }
    
    .faq-item {
        margin-bottom: 12px;
    }
    
    .faq-header {
        padding: 20px;
    }
    
    .faq-question {
        font-size: 1rem;
        padding-right: 12px;
    }
    
    .faq-answer {
        padding: 0 20px 20px;
    }
    
    /* Hero section mobile adjustments */
    .hero {
        padding-top: 120px; /* Increased to ensure greeting is never hidden under header on mobile */
        min-height: 100vh;
        display: flex;
        align-items: center;
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
        align-items: center;
    }
    
    .hero-text {
        order: 1;
        max-width: 100%;
        padding: 0 1rem;
    }
    
    .hero-visual {
        order: 2;
        height: auto;
        min-height: 250px;
        display: flex;
        justify-content: center;
        align-items: center;
    }
    
    
    .hero-title {
        font-size: 2.5rem;
        margin-bottom: 1rem;
    }
    
    .typing-cursor {
        font-size: 2.5rem;
    }
    
    .hero-description {
        font-size: 1rem;
        line-height: 1.5;
        margin-bottom: 1.5rem;
        padding: 0 0.5rem;
    }
    
    .cta-buttons {
        justify-content: center;
        flex-direction: column;
        align-items: center;
        gap: 0.75rem;
        margin-bottom: 1.5rem;
    }
    
    .btn {
        width: 100%;
        max-width: 280px;
        padding: 12px 24px;
        font-size: 1rem;
        justify-content: center;
    }
    
    .about-content,
    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .about-image {
        order: 1;
    }
    
    .about-text {
        order: 2;
    }
    
    .about-title {
        font-size: 1.8rem;
    }
    
    /* About Statistics Responsive */
    .about-stats {
        flex-direction: column;
        gap: 1.5rem;
        padding: 1.5rem;
    }
    
    .stat-item {
        margin-bottom: 1rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .stat-label {
        font-size: 0.8rem;
    }
    
    /* Responsive social icons */
    .social-icons {
        margin-right: 20px;
        gap: 1rem;
    }
    
    .social-icon {
        font-size: 1.1rem;
    }
    
    .hero-social {
        justify-content: center;
        margin-top: 1rem;
        gap: 1.5rem;
    }
    
    /* Samurai visual mobile optimizations */
    .samurai {
        transform: scale(2.5);
        margin-bottom: 1rem;
    }
    
    .samurai-container {
        min-height: 250px;
        gap: 1.5rem;
        justify-content: center;
        padding: 1rem 0;
    }
    
    .samurai-section {
        flex: none;
        height: auto;
    }
    
    /* Mobile dialogue box adjustments */
    .samurai-dialogue-box {
        min-width: 200px;
        max-width: 260px;
        padding: 10px;
        top: -80px;
        left: 50%;
        transform: translateX(-50%);
    }
    
    .dialogue-text {
        font-size: 13px;
        font-weight: 500;
        letter-spacing: 0.3px;
        line-height: 1.3;
    }
    
    .samurai-controls {
        margin-top: 0.5rem;
        padding-top: 0.75rem;
        border-top: 1px solid rgba(139, 92, 246, 0.2);
    }
    
    .samurai-controls p {
        font-size: 0.75rem;
        color: #ffffff !important;
        font-weight: 600 !important;
        text-shadow: 0 1px 3px rgba(0, 0, 0, 0.9) !important;
        line-height: 1.3;
        margin: 0;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    /* Skills Section Responsive */
    .skills-title {
        font-size: 2rem;
    }
    
    .skills-filters {
        gap: 0.5rem;
        justify-content: center;
    }
    
    .filter-btn {
        padding: 0.5rem 1rem;
        font-size: 0.8rem;
    }
    
    .skills-grid {
        grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
        gap: 1rem;
        max-width: 600px;
    }
    
    .skill-card {
        padding: 1rem 0.5rem;
    }
    
    .skill-icon {
        font-size: 2rem;
        height: 50px;
    }
    
    .skill-name {
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    /* Hero section extra small mobile adjustments */
    .hero {
        padding-top: 100px; /* Increased to ensure greeting is never hidden under header on very small screens */
        min-height: 100vh;
    }
    
    .hero-content {
        gap: 1.5rem;
        padding: 0 0.5rem;
    }
    
    .hero-text {
        padding: 0 0.5rem;
    }
    
    
    .hero-title {
        font-size: 2rem;
        margin-bottom: 0.75rem;
    }
    
    .typing-cursor {
        font-size: 2rem;
    }
    
    .hero-description {
        font-size: 0.9rem;
        line-height: 1.4;
        margin-bottom: 1.25rem;
        padding: 0;
    }
    
    .greeting {
        font-size: 1rem;
        margin-bottom: 0.25rem;
        margin-top: 0.5rem; /* Additional top margin for mobile */
    }
    
    .cta-buttons {
        gap: 0.5rem;
        margin-bottom: 1.25rem;
    }
    
    .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
        max-width: 250px;
    }
    
    /* Samurai visual for very small screens */
    .samurai {
        transform: scale(2);
        margin-bottom: 0.75rem;
    }
    
    .samurai-container {
        min-height: 200px;
        gap: 1rem;
        padding: 0.5rem 0;
    }
    
    .samurai-dialogue-box {
        min-width: 180px;
        max-width: 220px;
        padding: 8px;
        top: -70px;
    }
    
    .dialogue-text {
        font-size: 12px;
        letter-spacing: 0.2px;
    }
    
    .samurai-controls {
        margin-top: 0.25rem;
        padding-top: 0.5rem;
    }
    
    .samurai-controls p {
        font-size: 0.7rem;
        line-height: 1.2;
    }
    
    .hero-visual {
        min-height: 200px;
    }
    
    .hero-social {
        gap: 1rem;
        margin-top: 0.75rem;
    }
    
    .social-icon {
        font-size: 1rem;
    }
}

/* Medium mobile screens (481px - 768px) */
@media (min-width: 481px) and (max-width: 768px) {
    .hero {
        padding-top: 110px; /* Increased to ensure greeting is never hidden under header */
    }
    
    
    .hero-title {
        font-size: 2.8rem;
        margin-bottom: 1rem;
    }
    
    .typing-cursor {
        font-size: 2.8rem;
    }
    
    .hero-description {
        font-size: 1rem;
        padding: 0 1rem;
    }
    
    .samurai {
        transform: scale(2.8);
    }
    
    .samurai-dialogue-box {
        min-width: 220px;
        max-width: 280px;
        top: -85px;
    }
    
    .dialogue-text {
        font-size: 13px;
    }
    
    .btn {
        max-width: 300px;
    }
}

/* Large mobile screens and small tablets (769px - 1024px) */
@media (min-width: 769px) and (max-width: 1024px) {
    .hero {
        padding-top: 120px; /* Increased to ensure greeting is never hidden under header */
    }
    
    .hero-content {
        grid-template-columns: 1fr 1fr;
        gap: 3rem;
        text-align: left;
    }
    
    .hero-text {
        order: 1;
        text-align: left;
    }
    
    .hero-visual {
        order: 2;
        justify-content: center;
    }
    
    
    .hero-title {
        font-size: 3.2rem;
        margin-bottom: 1.25rem;
    }
    
    .typing-cursor {
        font-size: 3.2rem;
    }
    
    .hero-description {
        font-size: 1.1rem;
        padding: 0;
    }
    
    .cta-buttons {
        justify-content: flex-start;
        flex-direction: row;
        gap: 1rem;
    }
    
    .btn {
        width: auto;
        max-width: none;
    }
    
    .samurai {
        transform: scale(4);
    }
    
    .samurai-dialogue-box {
        min-width: 260px;
        max-width: 300px;
        top: -90px;
    }
    
    .dialogue-text {
        font-size: 14px;
    }
    
    .hero-social {
        justify-content: flex-start;
        margin-top: 1.5rem;
    }
}



/* Professional Timeline Section */
.timeline-container {
    max-width: 1000px;
    margin: 4rem auto 0;
    padding: 2rem 0;
    /* Ensure timeline doesn't affect other sections' width */
    width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

.project-name {
    text-align: center;
    padding: 10px 0;
    font-size: 2.5rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 2rem;
    position: relative;
}

.project-name::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #8b5cf6, #ec4899);
    border-radius: 2px;
}

.success {
    background: #78AD42 !important;
}

#timeline .timeline-item:after, #timeline .timeline-item:before {
    content: '';
    display: block;
    width: 100%;
    clear: both;
}

#timeline {
    width: 100%;
    margin: 30px auto;
    position: relative;
    padding: 0 20px;
    -webkit-transition: all 0.4s ease;
    -moz-transition: all 0.4s ease;
    -ms-transition: all 0.4s ease;
    transition: all 0.4s ease;
    /* Ensure timeline doesn't affect other sections */
    contain: layout;
    overflow: hidden;
}

#timeline:before {
    content: "";
    width: 3px;
    height: 100%;
    background: linear-gradient(180deg, #8b5cf6, #ec4899);
    left: 50%;
    top: 0;
    position: absolute;
}

#timeline:after {
    content: "";
    clear: both;
    display: table;
    width: 100%;
}

#timeline .timeline-item {
    margin-bottom: 50px;
    position: relative;
}

#timeline .timeline-item .timeline-icon {
    background: linear-gradient(135deg, #8b5cf6, #ec4899);
    width: 50px;
    height: 50px;
    position: absolute;
    top: 0;
    left: 50%;
    overflow: hidden;
    margin-left: -23px;
    -webkit-border-radius: 50%;
    -moz-border-radius: 50%;
    -ms-border-radius: 50%;
    border-radius: 50%;
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    opacity: 0;
    transform: scale(0.5);
}

#timeline .timeline-item .timeline-icon:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(139, 92, 246, 0.5);
}

#timeline .timeline-item .timeline-icon svg, #timeline .timeline-item .timeline-icon .fa {
    position: relative;
    top: 13px;
    left: 10px;
    font-size: 24px;
    color: #fff;
}

#timeline .timeline-item .timeline-content {
    width: 45%;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 20px;
    -webkit-box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    -moz-box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    -ms-box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    -webkit-border-radius: 15px;
    -moz-border-radius: 15px;
    -ms-border-radius: 15px;
    border-radius: 15px;
    -webkit-transition: all 0.3s ease;
    -moz-transition: all 0.3s ease;
    -ms-transition: all 0.3s ease;
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateX(-50px);
}

#timeline .timeline-item .timeline-content.right {
    transform: translateX(50px);
}

#timeline .timeline-item .timeline-content:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}

#timeline .timeline-item .timeline-content h2 {
    padding: 15px;
    background: linear-gradient(135deg, #8b5cf6, #ec4899);
    color: #fff;
    margin: -20px -20px 0 -20px;
    font-weight: 600;
    -webkit-border-radius: 15px 15px 0 0;
    -moz-border-radius: 15px 15px 0 0;
    -ms-border-radius: 15px 15px 0 0;
    border-radius: 15px 15px 0 0;
    font-size: 22px;
}

#timeline .timeline-item .timeline-content p {
    padding-top: 15px;
    padding-bottom: 10px;
    color: #ffffff;
    line-height: 1.6;
    font-size: 16px;
}

#timeline .timeline-item .timeline-content .time-stamp {
    color: #8b5cf6;
    font-weight: 600;
    font-size: 14px;
    display: block;
    margin-top: 10px;
    padding: 5px 10px;
    background: rgba(139, 92, 246, 0.1);
    border-radius: 20px;
    text-align: center;
    border: 1px solid rgba(139, 92, 246, 0.3);
}

#timeline .timeline-item .timeline-content:before {
    content: '';
    position: absolute;
    left: 45%;
    top: 20px;
    width: 0;
    height: 0;
    border-top: 7px solid transparent;
    border-bottom: 7px solid transparent;
    border-left: 7px solid rgba(255, 255, 255, 0.2);
}

#timeline .timeline-item .timeline-content.right {
    float: right;
}

#timeline .timeline-item .timeline-content.right:before {
    content: '';
    right: 45%;
    left: inherit;
    border-left: 0;
    border-right: 7px solid rgba(255, 255, 255, 0.2);
}

/* Animation CSS */
.timeline-icon.animate-it {
    opacity: 1 !important;
    transform: scale(1) !important;
    -webkit-animation: bounce-1 0.6s;
    -moz-animation: bounce-1 0.6s;
    animation: bounce-1 0.6s;
}

.timeline-content.animate-it {
    opacity: 1 !important;
    transform: translateX(0) !important;
    -webkit-animation: bounce-2 0.6s;
    -moz-animation: bounce-2 0.6s;
    animation: bounce-2 0.6s;
}

.timeline-content.right.animate-it {
    transform: translateX(0) !important;
}

@media only screen and (min-width: 769px) {
    .timeline-content.right.animate-it {
        -webkit-animation: bounce-2-inverse 0.6s;
        -moz-animation: bounce-2-inverse 0.6s;
        animation: bounce-2-inverse 0.6s;
    }
}

@media only screen and (max-width: 768px) {
    .timeline-content.animate-it, .timeline-content.right.animate-it {
        -webkit-animation: bounce-2-inverse 0.6s;
        -moz-animation: bounce-2-inverse 0.6s;
        animation: bounce-2-inverse 0.6s;
    }
}

/* Animation Keyframes */
@-webkit-keyframes bounce-1 {
    0% {
        opacity: 0;
        -webkit-transform: scale(0.5);
    }
    60% {
        opacity: 1;
        -webkit-transform: scale(1.2);
    }
    100% {
        -webkit-transform: scale(1);
    }
}

@-moz-keyframes bounce-1 {
    0% {
        opacity: 0;
        -moz-transform: scale(0.5);
    }
    60% {
        opacity: 1;
        -moz-transform: scale(1.2);
    }
    100% {
        -moz-transform: scale(1);
    }
}

@keyframes bounce-1 {
    0% {
        opacity: 0;
        -webkit-transform: scale(0.5);
        -moz-transform: scale(0.5);
        -ms-transform: scale(0.5);
        -o-transform: scale(0.5);
        transform: scale(0.5);
    }
    60% {
        opacity: 1;
        -webkit-transform: scale(1.2);
        -moz-transform: scale(1.2);
        -ms-transform: scale(1.2);
        -o-transform: scale(1.2);
        transform: scale(1.2);
    }
    100% {
        -webkit-transform: scale(1);
        -moz-transform: scale(1);
        -ms-transform: scale(1);
        -o-transform: scale(1);
        transform: scale(1);
    }
}

@-webkit-keyframes bounce-2 {
    0% {
        opacity: 0;
        -webkit-transform: translateX(-100px);
    }
    60% {
        opacity: 1;
        -webkit-transform: translateX(20px);
    }
    100% {
        -webkit-transform: translateX(0);
    }
}

@-moz-keyframes bounce-2 {
    0% {
        opacity: 0;
        -moz-transform: translateX(-100px);
    }
    60% {
        opacity: 1;
        -moz-transform: translateX(20px);
    }
    100% {
        -moz-transform: translateX(0);
    }
}

@keyframes bounce-2 {
    0% {
        opacity: 0;
        -webkit-transform: translateX(-100px);
        -moz-transform: translateX(-100px);
        -ms-transform: translateX(-100px);
        -o-transform: translateX(-100px);
        transform: translateX(-100px);
    }
    60% {
        opacity: 1;
        -webkit-transform: translateX(20px);
        -moz-transform: translateX(20px);
        -ms-transform: translateX(20px);
        -o-transform: translateX(20px);
        transform: translateX(20px);
    }
    100% {
        -webkit-transform: translateX(0);
        -moz-transform: translateX(0);
        -ms-transform: translateX(0);
        -o-transform: translateX(0);
        transform: translateX(0);
    }
}

@-webkit-keyframes bounce-2-inverse {
    0% {
        opacity: 0;
        -webkit-transform: translateX(100px);
    }
    60% {
        opacity: 1;
        -webkit-transform: translateX(-20px);
    }
    100% {
        -webkit-transform: translateX(0);
    }
}

@-moz-keyframes bounce-2-inverse {
    0% {
        opacity: 0;
        -moz-transform: translateX(100px);
    }
    60% {
        opacity: 1;
        -moz-transform: translateX(-20px);
    }
    100% {
        -moz-transform: translateX(0);
    }
}

@keyframes bounce-2-inverse {
    0% {
        opacity: 0;
        -webkit-transform: translateX(100px);
        -moz-transform: translateX(100px);
        -ms-transform: translateX(100px);
        -o-transform: translateX(100px);
        transform: translateX(100px);
    }
    60% {
        opacity: 1;
        -webkit-transform: translateX(-20px);
        -moz-transform: translateX(-20px);
        -ms-transform: translateX(-20px);
        -o-transform: translateX(-20px);
        transform: translateX(-20px);
    }
    100% {
        -webkit-transform: translateX(0);
        -moz-transform: translateX(0);
        -ms-transform: translateX(0);
        -o-transform: translateX(0);
        transform: translateX(0);
    }
}

/* Timeline Certificate Hover Styles */
#timeline .timeline-item .timeline-content.certificate-hover {
    position: relative;
    cursor: pointer;
    overflow: visible;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

#timeline .timeline-item .timeline-content.certificate-hover::before {
    content: '📜';
    position: absolute;
    top: -8px;
    right: -8px;
    background: linear-gradient(135deg, #8B5CF6, #EC4899);
    color: white;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    opacity: 0;
    transform: scale(0);
    transition: all 0.3s ease;
    z-index: 20;
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.4);
}

#timeline .timeline-item .timeline-content.certificate-hover:hover::before {
    opacity: 1;
    transform: scale(1);
}

/* Certificate preview that appears on hover */
.certificate-preview {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #1a1a1a;
    border-radius: 15px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
    pointer-events: none;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.certificate-preview.show {
    opacity: 1;
    visibility: visible;
}

.certificate-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 15px;
    transition: transform 0.3s ease;
}

.certificate-preview.show img {
    transform: scale(1.05);
}


/* Enhanced hover effect for timeline content with certificates */
#timeline .timeline-item .timeline-content.certificate-hover:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 15px 40px rgba(139, 92, 246, 0.3);
    border-color: rgba(139, 92, 246, 0.5);
}

/* Timeline content with certificate gets special styling */
#timeline .timeline-item .timeline-content.certificate-hover {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

#timeline .timeline-item .timeline-content.certificate-hover:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(139, 92, 246, 0.4);
}

/* Responsive Design for Timeline */
@media screen and (max-width: 768px) {
    .timeline-container {
        margin: 3rem auto 0;
        padding: 1.5rem 0;
    }
    
    .project-name {
        font-size: 2rem;
        margin-bottom: 1.5rem;
    }
    
    #timeline {
        margin: 30px auto;
        padding: 0 20px;
        width: 100%;
        max-width: 600px;
    }
    
    #timeline:before {
        left: 20px;
    }
    
    #timeline .timeline-item {
        margin-bottom: 40px;
        position: relative;
        clear: both;
        width: 100%;
    }
    
    #timeline .timeline-item .timeline-content {
        width: calc(100% - 60px);
        margin-left: 60px;
        float: none;
        clear: both;
        position: relative;
        display: block;
    }
    
    #timeline .timeline-item .timeline-content:before, 
    #timeline .timeline-item .timeline-content.right:before {
        left: -7px;
        top: 20px;
        border-left: 0;
        border-right: 7px solid rgba(255, 255, 255, 0.2);
        margin-left: 0;
    }
    
    #timeline .timeline-item .timeline-icon {
        left: 20px;
        margin-left: -25px;
        position: absolute;
        z-index: 10;
    }
    
    #timeline .timeline-item .timeline-content h2 {
        font-size: 18px;
    }
    
    #timeline .timeline-item .timeline-content p {
        font-size: 14px;
    }
    
    #timeline .timeline-item .timeline-content.certificate-hover::before {
        width: 20px;
        height: 20px;
        font-size: 10px;
        top: -6px;
        right: -6px;
    }
}

@media screen and (max-width: 480px) {
    .project-name {
        font-size: 1.8rem;
    }
    
    #timeline .timeline-item .timeline-content {
        padding: 15px;
    }
    
    #timeline .timeline-item .timeline-content h2 {
        font-size: 16px;
        padding: 12px;
    }
    
    #timeline .timeline-item .timeline-content p {
        font-size: 13px;
    }
}

/* Advanced Lazy Loading Styles */
.lazy-placeholder {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading-shimmer 1.5s infinite;
    border-radius: 4px;
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    font-size: 14px;
    transition: all 0.3s ease;
}

.lazy-loading {
    opacity: 0.7;
    filter: blur(1px);
    transition: all 0.3s ease;
}

.lazy-loaded {
    opacity: 1;
    filter: none;
    transition: all 0.3s ease;
}

.lazy-error {
    background: #f8f9fa;
    border: 2px dashed #dee2e6;
    color: #6c757d;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 200px;
    font-size: 14px;
}

.lazy-error::before {
    content: "⚠️ Image failed to load";
    text-align: center;
}

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

/* Certificate preview lazy loading specific styles */
.certificate-preview img.lazy-placeholder {
    min-height: 150px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.certificate-preview img.lazy-loaded {
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.certificate-preview img.lazy-loaded:hover {
    transform: scale(1.02);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

/* Project image lazy loading styles */
.project-image img.lazy-placeholder {
    min-height: 200px;
    background: linear-gradient(135deg, #f1f3f4 0%, #e8eaed 100%);
    border-radius: 8px;
}

.project-image img.lazy-loaded {
    border-radius: 8px;
    transition: transform 0.3s ease;
}

.project-image img.lazy-loaded:hover {
    transform: scale(1.05);
}

/* Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
    .lazy-placeholder {
        animation: none;
        background: #f0f0f0;
    }
    
    .lazy-loaded,
    .lazy-loading {
        transition: none;
    }
    
    .certificate-preview img.lazy-loaded:hover,
    .project-image img.lazy-loaded:hover {
        transform: none;
    }
}