@import url('https://fonts.googleapis.com/css2?family=Press+Start+2P&family=Roboto+Mono:wght@400;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Exo+2:wght@400;700&display=swap');

:root {
    --bg-color: #000000;
    --primary-color: #FFFFFF;
    --secondary-color: #AAAAAA;
    --text-color: #E0E0E0;
    --surface-color: #1A1A1A;
    --border-color: #333333;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: 'Roboto Mono', monospace;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    background-image: url('../wavy-black-white-background.jpg');
    background-size: cover;
    background-attachment: fixed;
    background-position: center;
    
    animation: background-pan 60s linear infinite;
}

@keyframes background-pan {
    from { background-position: 0% 0%; }
    to { background-position: 100% 100%; }
}

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

h1 {
    font-family: 'Press Start 2P', cursive;
    color: var(--primary-color);
    text-shadow: 2px 2px 0px var(--secondary-color);
    text-transform: uppercase;
}

h2, h3, h4, h5, h6 {
    font-family: 'Exo 2', sans-serif;
    color: var(--primary-color);
    text-shadow: 1px 1px 0px rgba(255, 255, 255, 0.2); /* More subtle shadow */
    /* text-transform: uppercase; - Removed for better readability */
}

.highlight {
    color: var(--primary-color);
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.7);
}

h1 {
    font-size: 4rem;
    letter-spacing: 5px;
}

h2 {
    font-size: 2.5rem;
    margin-bottom: 3rem;
    text-align: center;
    letter-spacing: 1.5px; /* Adjusted for better readability with Exo 2 */
}

a {
    color: var(--secondary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--primary-color);
    text-shadow: 0 0 5px var(--primary-color);
}

header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 2rem 0;
    z-index: 100;
    background: transparent;
    transition: background 0.3s ease;
}

header.scrolled {
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-color);
    text-shadow: 2px 2px 0px var(--secondary-color);
}

nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin-left: 3rem;
}

nav ul li a {
    color: var(--text-color);
    transition: color 0.3s ease, text-shadow 0.3s ease;
    font-size: 1.1rem;
    letter-spacing: 1px;
}

nav ul li a:hover {
    color: var(--primary-color);
    text-shadow: 0 0 5px var(--primary-color);
}

#hero {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    background: radial-gradient(ellipse at center, rgba(0,0,0,0.6) 0%, rgba(0,0,0,1) 70%);
    position: relative;
    overflow: hidden;
}

/* Removed F1 track lines effect */

.hero-text {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column; /* Stacks content vertically within hero-text */
    align-items: center; /* Centers content horizontally within hero-text */
    justify-content: center;
    text-align: center; /* Ensures text within hero-text is centered by default */
}

.hero-content-wrapper {
    display: flex;
    flex-direction: row; /* Arranges image and text side-by-side on desktop */
    align-items: center; /* Vertically aligns image and text */
    gap: 2rem; /* Space between image and text */
    margin-bottom: 1.5rem;
}

.hero-image-container {
    margin-bottom: 0; /* Reset margin for flex layout */
    width: 150px; /* Adjusted size for desktop */
    height: 150px;
    border-radius: 50%;
    overflow: hidden;
    background-color: black;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
    border: 2px solid rgba(255, 255, 255, 0.5); /* Subtle white border */
    z-index: 10;
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.hero-text h1 {
    background: none;
    -webkit-background-clip: unset;
    -webkit-text-fill-color: unset;
    color: var(--primary-color);
    font-size: 2.5rem; /* Further reduced font size for desktop */
    letter-spacing: 2px; /* Adjusted letter spacing */
    margin-bottom: 0.5rem; /* Adjusted margin */
    text-align: left; /* Align text to left */
}

.hero-text p {
    font-size: 1.2rem; /* Adjusted font size for desktop */
    max-width: 800px;
    margin: 0; /* Reset margin */
    color: var(--text-color);
    letter-spacing: 1px;
    text-align: left; /* Align text to left */
}

.cta-button {
    display: inline-block;
    background: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    padding: 1rem 2.5rem;
    border-radius: 5px;
    font-weight: 700;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 2.5rem; /* Add margin to separate from text */
}

.cta-button:hover {
    background: var(--primary-color);
    color: var(--bg-color);
    box-shadow: 0 5px 15px rgba(255, 255, 255, 0.4);
    transform: translateY(-5px) scale(1.05);
}

section {
    padding: 8rem 0;
    position: relative;
    overflow: hidden;
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
}

.project-card {
    background: var(--surface-color);
    border-radius: 5px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
    backdrop-filter: blur(5px);
    position: relative;
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(255,255,255,0.1), rgba(170,170,170,0.1));
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

.project-card:hover {
    transform: translateY(-10px) scale(1.03);
    box-shadow: 0 15px 30px rgba(0,0,0,0.3), 0 0 20px var(--primary-color);
    background-color: rgba(26, 26, 26, 0.5);
}

.project-card-content {
    padding: 2rem;
    position: relative;
    z-index: 1;
}

.project-card h3 {
    margin-bottom: 1rem;
    color: var(--primary-color);
    font-family: 'Exo 2', sans-serif;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5); /* Add a subtle glow */
    /* text-decoration: underline; - Removed for cleaner look */
}

.project-card a {
    display: inline-block;
    margin-top: 1.5rem;
    font-weight: 700;
    color: var(--secondary-color);
}

.job, .education-item {
    background: var(--surface-color);
    border-radius: 5px;
    padding: 2rem;
    margin-bottom: 2rem;
    border: 1px solid var(--border-color);
    backdrop-filter: blur(5px);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.job:hover, .education-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2), 0 0 10px var(--primary-color);
}

footer {
    text-align: center;
    padding: 3rem 0;
    border-top: 1px solid var(--border-color);
}

/* Cursor Trail */
.cursor-trail {
    position: fixed;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 9999;
}

.trail-dot {
    position: absolute;
    width: 8px;
    height: 8px;
    background-color: var(--primary-color);
    border-radius: 50%;
    opacity: 0;
    transform: scale(0);
    animation: fadeOutScale 0.5s forwards;
}

@keyframes fadeOutScale {
    from { opacity: 1; transform: scale(1); }
    to { opacity: 0; transform: scale(0); }
}

/* Removed Glitch Effect */

/* Mobile Menu Styles */
.menu-toggle {
    display: none; /* Hidden by default */
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 25px;
    cursor: pointer;
    z-index: 101; /* Above nav links */
}

.menu-toggle .bar {
    width: 100%;
    height: 3px;
    background-color: var(--primary-color);
    transition: all 0.3s ease-in-out;
}

/* Animation for hamburger to cross */
.menu-toggle.active .bar:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active .bar:nth-child(1) {
    transform: translateY(11px) rotate(45deg);
}

.menu-toggle.active .bar:nth-child(3) {
    transform: translateY(-11px) rotate(-45deg);
}

/* Chatbot Styles */
.chatbot-container {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 1000;
}

.chatbot-toggle {
    width: 64px;
    height: 64px;
    border-radius: 9999px;
    background-image: linear-gradient(to right, #4f46e5, #a855f7);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.2s ease-in-out;
}

.chatbot-toggle:hover {
    transform: scale(1.1);
}

.chatbot-icon {
    width: 28px;
    height: 28px;
    color: white;
}

.chatbot-window {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 384px;
    background-color: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    overflow: hidden;
    display: none; /* Hidden by default */
    flex-direction: column; /* Added to stack children vertically */
}

.chatbot-window.open {
    display: flex; /* Show when open class is present */
    position: absolute;
    bottom: 0;
    right: 0;
    width: 384px;
    height: 350px; /* Fixed height for desktop */
}



.chatbot-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px;
    background-image: linear-gradient(to right, rgba(79, 70, 229, 0.3), rgba(168, 85, 247, 0.3));
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    flex-shrink: 0;
}

.chatbot-header-title {
    display: flex;
    align-items: center;
    gap: 12px;
}

.bot-icon {
    width: 32px;
    height: 32px;
    border-radius: 9999px;
    background-image: linear-gradient(to right, #4f46e5, #a855f7);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.chatbot-header h3 {
    color: white;
    font-weight: 600;
    font-size: 14px;
}

.chatbot-header p {
    color: #10b981;
    font-size: 12px;
}

.chatbot-header-buttons {
    display: flex;
    align-items: center;
    gap: 8px;
}

.chatbot-header-button {
    width: 32px;
    height: 32px;
    color: #9ca3af;
    background: none;
    border: none;
    cursor: pointer;
    transition: color 0.2s ease-in-out, background-color 0.2s ease-in-out;
}

.chatbot-header-button:hover {
    color: white;
    background-color: rgba(255, 255, 255, 0.1);
}

.chatbot-body {
    overflow-y: auto;
    padding: 16px;
    background-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.5), rgba(17, 24, 39, 0.5));
    flex-grow: 1;
}

.chatbot-messages {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.message {
    display: flex;
    max-width: 80%;
}

.user-message {
    justify-content: flex-end;
    align-self: flex-end;
}

.bot-message {
    justify-content: flex-start;
    align-self: flex-start;
}

.message-content {
    padding: 12px;
    border-radius: 16px;
}

.user-message .message-content {
    background-image: linear-gradient(to right, #4f46e5, #a855f7);
    color: white;
}

.bot-message .message-content {
    background-color: rgba(31, 41, 55, 0.8);
    color: #e5e7eb;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.message-icon {
    width: 16px;
    height: 16px;
    margin-top: 2px;
    flex-shrink: 0;
}

.user-message .message-icon {
    color: white;
}

.bot-message .message-icon {
    color: #60a5fa;
}

.message p {
    font-size: 14px;
    line-height: 1.6;
}

.typing-indicator {
    display: flex;
    justify-content: flex-start;
}

.typing-indicator .message-content {
    display: flex;
    align-items: center;
    gap: 8px;
}

.typing-dot {
    width: 8px;
    height: 8px;
    background-color: #60a5fa;
    border-radius: 9999px;
    animation: bounce 1s infinite;
}

.typing-dot:nth-child(2) {
    animation-delay: 150ms;
}

.typing-dot:nth-child(3) {
    animation-delay: 300ms;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-4px); }
}

.chatbot-input {
    padding: 16px;
    background-color: rgba(0, 0, 0, 0.6);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: flex-end;
    gap: 8px;
    flex-shrink: 0;
}

.chatbot-input textarea {
    flex: 1;
    background-color: rgba(17, 24, 39, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    color: white;
    padding: 12px 48px 12px 12px;
    resize: none;
    min-height: 44px;
    max-height: 120px;
    transition: all 0.2s ease-in-out;
}

.chatbot-input textarea:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(79, 70, 229, 0.5);
    border-color: rgba(79, 70, 229, 0.5);
}

.chatbot-input button {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background-image: linear-gradient(to right, #4f46e5, #a855f7);
    border: none;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    cursor: pointer;
    transition: all 0.2s ease-in-out;
}

.chatbot-input button:hover {
    transform: scale(1.1);
}

.chatbot-input button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Interactive ID Card Section */
#hanging-id-card-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh; /* Use min-height to ensure it takes at least the full viewport height */
    padding: 4rem 2rem;
    background: radial-gradient(ellipse at center, rgba(10, 10, 20, 1) 0%, rgba(0, 0, 0, 1) 70%);
    overflow: hidden;
    perspective: 1200px;
}

.id-card-container {
    position: relative;
    cursor: grab;
}

.id-card-container:active {
    cursor: grabbing;
}

.hanging-id-card-wrapper {
    position: relative;
    transform-style: preserve-3d;
    transition: transform 0.2s ease-out;
}

/* ID Strap System */
.id-strap-system {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: -2px; /* Overlap with the card slightly */
    transform-origin: top center;
}

.id-badge-reel {
    width: 48px;
    height: 48px;
    background: linear-gradient(to br, #4a4a4a, #2a2a2a);
    border-radius: 50%;
    border: 2px solid #6a6a6a;
    box-shadow: 0 4px 8px rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 14px;
    margin-bottom: -2px;
    z-index: 1;
}

.id-cord {
    width: 2px;
    height: 80px;
    background: linear-gradient(to bottom, #888, #444);
}

.id-clip {
    width: 24px;
    height: 32px;
    background: linear-gradient(to br, #ccc, #888);
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.3);
    margin-top: -2px;
}

/* The Card Itself */
.id-card {
    width: 320px;
    height: 480px; /* Changed to vertical orientation */
    position: relative;
    transform-style: preserve-3d;
    transition: transform 0.6s cubic-bezier(0.68, -0.55, 0.27, 1.55);
    transform-origin: top center;
}

.id-card.flipped {
    transform: rotateY(180deg);
}

.id-card-face {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 16px;
    background: linear-gradient(to br, #1e1e2f, #10101a);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    padding: 24px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.id-card-back {
    transform: rotateY(180deg);
}

/* Card Content Styling */
.id-card-header-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.id-card-avatar {
    width: 64px;
    height: 64px;
    border-radius: 8px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    object-fit: cover;
}

.id-card-name {
    font-size: 1.25rem;
    font-weight: bold;
}

.id-card-title {
    font-size: 0.9rem;
    color: #60a5fa; /* Accent color */
}

.id-card-header-right {
    text-align: right;
    font-size: 0.75rem;
}

.id-card-label {
    font-weight: bold;
    color: #60a5fa;
}

.id-card-number {
    color: rgba(255, 255, 255, 0.6);
}

.id-card-company-section {
    text-align: center;
    margin: auto 0;
}

.id-card-company {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.8);
}

.id-card-divider {
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.3), transparent);
    margin-top: 8px;
}

.id-card-footer {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.4);
}

/* Back of Card */
.id-card-back-header {
    text-align: center;
    margin-bottom: 24px;
}

.id-card-back-body {
    display: flex;
    flex-direction: column;
    gap: 16px;
    flex-grow: 1;
}

.id-contact-info {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.9rem;
}

.id-contact-icon {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    color: #60a5fa;
}

.id-card-back-footer {
    text-align: center;
}

.id-social-links {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-bottom: 16px;
}

.id-social-link {
    padding: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transition: background 0.2s;
}

.id-social-link:hover {
    background: rgba(255, 255, 255, 0.2);
}

.id-social-icon {
    width: 20px;
    height: 20px;
    color: white;
}

/* Effects */
.id-card-hologram {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, transparent 40%, rgba(255, 255, 255, 0.15) 50%, transparent 60%);
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
}

.id-card-container:hover .id-card-hologram {
    opacity: 1;
}

.id-card-shadow {
    position: absolute;
    bottom: -40px;
    left: 5%;
    width: 90%;
    height: 20px;
    background: radial-gradient(ellipse at center, rgba(0,0,0,0.4) 0%, transparent 80%);
    border-radius: 50%;
    transition: all 0.3s ease-out;
}

.id-card-instructions {
    margin-top: 2rem;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
    text-align: center;
}


.drag-handle-top-left {
    position: absolute;
    top: 0;
    left: 0;
    width: 20px;
    height: 20px;
    background: rgba(255, 255, 255, 0.1); /* Light background for visibility */
    cursor: grab;
    z-index: 1001; /* Ensure it's above other content */
    border-radius: 5px; /* Slightly rounded corners */
}

/* -- Responsive Styles for Mobile -- */
@media (max-width: 768px) {
    nav ul {
        display: none;
        flex-direction: column;
        width: 100%;
        background-color: rgba(18, 18, 18, 0.95);
        position: absolute;
        top: 70px;
        left: 0;
        padding: 1rem 0;
    }

    nav ul.active {
        display: flex !important;
        z-index: 999; /* Ensure it's on top */
    }

    nav ul li {
        text-align: center;
        margin: 1rem 0;
    }

    .menu-toggle {
        display: block;
        cursor: pointer;
    }

    .menu-toggle .bar {
        display: block;
        width: 25px;
        height: 3px;
        margin: 5px auto;
        background-color: var(--primary-color);
        transition: all 0.3s ease-in-out;
    }

    #hero h1 {
        font-size: 3rem;
    }

    #hero p {
        font-size: 1.2rem;
    }

    .hero-content-wrapper {
        flex-direction: column;
    }

    .chatbot-window {
        /* No display property here, let .chatbot-window.open handle it */
    }

    .chatbot-window.open {
        display: flex; /* Display when open class is present */
        position: fixed;
        left: 1rem;
        right: 1rem;
        bottom: 1rem;
        height: 65vh; /* Reduced height for mobile */
        top: auto; /* Let height and bottom define position */
        border-radius: 16px;
        z-index: 1002;
        flex-direction: column;
    }

    .chatbot-container {
        bottom: 15px;
        right: 15px;
    }

    .chatbot-toggle {
        width: 50px;
        height: 50px;
    }

    .job, .project-card {
        padding: 1.5rem; /* Reduced padding for mobile */
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 2.2rem;
    }

    h2 {
        font-size: 1.4rem;
    }

    .hero-text p {
        font-size: 1rem;
    }

    .cta-button {
        padding: 0.8rem 1.2rem;
        font-size: 0.9rem;
    }
}

/* Skills Section */
#skills {
    padding: 6rem 0;
    overflow: hidden;
    position: relative;
}

.skills-scroll-container {
    width: 100%;
    overflow: hidden;
    position: relative;
    background: linear-gradient(135deg, rgba(26, 26, 26, 0.4), rgba(10, 10, 20, 0.6));
    border-radius: 20px;
    padding: 3rem 0;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
}

.skills-scroll-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, 
        rgba(0,0,0,0.8) 0%, 
        transparent 15%, 
        transparent 85%, 
        rgba(0,0,0,0.8) 100%);
    pointer-events: none;
    z-index: 1;
}

.skills-track {
    display: flex;
    gap: 2rem;
    animation: scrollRight 30s linear infinite;
    width: max-content;
    will-change: transform;
}

.skill-logo {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 0.8rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.skill-logo::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.6s ease;
}

.skill-logo:hover::before {
    left: 100%;
}

.skill-logo:hover {
    transform: translateY(-8px) scale(1.05);
    box-shadow: 0 15px 35px rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
}

.skill-logo img {
    width: 32px;
    height: 32px;
    filter: brightness(0.85) saturate(1.2);
    transition: all 0.4s ease;
    z-index: 2;
    position: relative;
}

.skill-logo:hover img {
    filter: brightness(1.1) saturate(1.4);
    transform: scale(1.1);
}

@keyframes scrollRight {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

@keyframes scrollLeft {
    0% { transform: translateX(-50%); }
    100% { transform: translateX(0); }
}

.skills-track.reverse {
    animation: scrollLeft 30s linear infinite;
}

@media (max-width: 768px) {
    .skill-logo {
        width: 50px;
        height: 50px;
        padding: 0.6rem;
    }
    
    .skill-logo img {
        width: 26px;
        height: 26px;
    }
    
    .skills-track {
        gap: 1.5rem;
        animation-duration: 25s;
    }
    
    .skills-scroll-container {
        padding: 2rem 0;
    }
}

@media (max-width: 480px) {
    .skill-logo {
        width: 45px;
        height: 45px;
        padding: 0.5rem;
    }
    
    .skill-logo img {
        width: 24px;
        height: 24px;
    }
    
    .skills-track {
        gap: 1.2rem;
        animation-duration: 20s;
    }
}

@media (max-width: 360px) {
    h2 {
        font-size: 1.2rem;
    }
}