* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

:root {
    --primary: #00ff88;
    --dark: #0a0a0a;
    --light: #ffffff;
}

body {
    background: var(--dark);
    color: var(--light);
    overflow-x: hidden;
    position: relative;
}

#canvas-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    opacity: 0.5;
}

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

nav {
    width: 100%;
    z-index: 1000;
    padding: 2rem 0;
    transition: all 0.3s;
    mix-blend-mode: difference;
}

.gr {
    color: var(--primary);
}

a {
    color: var(--primary);
    text-decoration: none;
}

.nav-scrolled {
    background: rgba(10, 10, 10, 0.95);
    padding: 1rem 0;
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 2rem;
    font-weight: 900;
    color: var(--primary);
}

.nav-links {
    display: flex;
    gap: 3rem;
}

.nav-links a {
    color: var(--light);
    text-decoration: none;
    font-size: 1.1rem;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    background: var(--primary);
    bottom: -5px;
    left: 0;
    transition: width 0.3s;
}

.nav-links a:hover::after {
    width: 100%;
}

.hero {
    height: 100vh;
    display: flex;
    align-items: center;
}

.hero-content {
    max-width: 800px;
}

.hero-title {
    font-size: 3rem;
    line-height: 1.1;
    margin-bottom: 2rem;
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 3rem;
    color: rgba(255,255,255,0.8);
}

.projects {
    padding: 10rem 0;
}

.section-title {
    font-size: 3rem;
    margin-bottom: 4rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.section-title::after {
    content: '';
    height: 1px;
    flex: 1;
    background: var(--primary);
    opacity: 0.3;
}

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

.footer {
    padding: 2rem 0;
    text-align: center;
    color: rgba(255,255,255,0.5);
}

.project-card {
    position: relative;
    aspect-ratio: 16/9;
    overflow: hidden;
    border-radius: 15px;
    cursor: pointer;
}

.project-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.project-card:hover img {
    transform: scale(1.05);
}

.project-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 2rem;
    background: linear-gradient(transparent, rgba(0,0,0,0.9));
    transform: translateY(100%);
    transition: transform 0.5s;
}

.project-card:hover .project-info {
    transform: translateY(0);
}

.project-title {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--primary);
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    padding: 4rem 0;
}

.skill-card {
    background: rgba(255,255,255,0.03);
    border-radius: 15px;
    padding: 2rem;
    transition: transform 0.3s;
    border: 1px solid rgba(255,255,255,0.1);
}

.skill-card:hover {
    transform: translateY(-10px);
    background: rgba(255,255,255,0.05);
}

.skill-icon {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

.contact {
    padding: 10rem 0;
    text-align: center;
}

.btn {
    display: inline-block;
    padding: 1rem 3rem;
    background: var(--primary);
    color: var(--dark);
    text-decoration: none;
    border-radius: 50px;
    font-weight: bold;
    font-size: 1.1rem;
    transition: all 0.3s;
}

.btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,255,136,0.3);
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 3rem;
    }

    .nav-links {
        display: none;
    }

    .project-grid {
        grid-template-columns: 1fr;
    }
}

.software-icons {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 2;
    display: flex;
    gap: 8px;
}

.software-icons img {
    width: 32px;
    height: 32px;
    background: rgba(255, 255, 255, 0.9);
    padding: 4px;
    border-radius: 15%;
    transition: transform 0.2s ease;
}

.software-icons img:hover {
    transform: scale(1.1);
}

.video-container {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    margin: 2rem 0;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.mechanic-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 2rem;
    gap: 2rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 15px;
    padding: 2rem;
    transition: transform 0.3s ease, background-color 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.mechanic-item:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--primary);
}

.mechanic-text h3 {
    color: var(--primary);
    margin-bottom: 1rem;
    font-size: 1.4rem;
}

.mechanic-text p {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.mechanic-text ul {
    list-style-position: inside;
    color: rgba(255, 255, 255, 0.7);
}

.mechanic-text ul ul {
    margin-left: 1.5rem;
    margin-bottom: 0.5rem;
}

.mechanic-text li {
    margin-bottom: 0.5rem;
    transition: color 0.3s ease;
}

.mechanic-text li:hover {
    color: var(--primary);
}

.skills-container {
    display: grid;
    gap: 2rem;
    padding: 2rem 0;
}

.skills-category {
    background: rgba(255, 255, 255, 0.05);
    padding: 1.5rem;
    border-radius: 10px;
    backdrop-filter: blur(10px);
}

.skills-category h3 {
    margin-bottom: 1.5rem;
    color: #fff;
}

.skill-item {
    margin-bottom: 1rem;
}

.skill-name {
    display: block;
    margin-bottom: 0.5rem;
    color: #fff;
}

.skill-bar {
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
}

.skill-progress {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), #00ff88aa);
    border-radius: 4px;
    transition: width 1s ease-in-out;
}

.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
    gap: 1rem;
    text-align: center;
}

.tool-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.tool-item img {
    width: 40px;
    height: 40px;
    transition: transform 0.3s ease;
}

.tool-item:hover img {
    transform: scale(1.1);
}

@media (min-width: 768px) {
    .skills-container {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }
}

.mechanic-text pre {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    padding: 1rem;
    margin: 1rem 0;
    overflow-x: auto;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.mechanic-text code {
    font-family: 'Consolas', 'Monaco', monospace;
    font-size: 0.9rem;
    color: #e6e6e6;
}

.mechanic-text h4 {
    color: var(--primary);
    margin: 1.5rem 0 0.5rem 0;
    font-size: 1.2rem;
}

.mechanic-text pre::-webkit-scrollbar {
    height: 8px;
}

.mechanic-text pre::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

.mechanic-text pre::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 4px;
}

.mechanic-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 2rem;
    gap: 2rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 15px;
    padding: 2rem;
    transition: transform 0.3s ease, background-color 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

/* Add styles for the text content */
.mechanic-text {
    flex: 1;  /* Allow text to take available space */
    min-width: 0;  /* Prevent text from forcing container growth */
}

/* Add styles for the image container */
.mechanic-image {
    flex: 0 0 auto;  /* Don't allow image to grow or shrink */
    max-width: 40%;  /* Limit image width to 40% of container */
    margin-left: auto;  /* Push image to the right */
}

.mechanic-image img {
    width: 100%;  /* Make image fill its container */
    height: auto;  /* Maintain aspect ratio */
    border-radius: 8px;  /* Optional: round the corners */
    object-fit: cover;  /* Ensure image covers area without distortion */
}

/* Add responsive behavior */
@media (max-width: 768px) {
    .mechanic-item {
        flex-direction: column;  /* Stack content vertically on mobile */
    }

    .mechanic-image {
        max-width: 100%;  /* Allow image to take full width on mobile */
        margin-top: 1rem;  /* Add some spacing */
    }
}

.programming-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* Two cards per row */
    gap: 1.5rem;
    margin-top: 1rem;
}

.lang-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s ease, background 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.lang-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--primary);
}

.lang-header {
    padding: 1.2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.lang-title {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.lang-name {
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--primary);
}

.lang-icon {
    height: 1.2rem;
    /* center vertically */
    align-items: center;
}

.lang-details {
    padding: 1.2rem;
}

.lang-details ul {
    list-style: none;
    color: rgba(255, 255, 255, 0.8);
}

.lang-details ul li {
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
    position: relative;
    padding-left: 1rem;
}

.lang-details ul li::before {
    content: "•";
    color: var(--primary);
    position: absolute;
    left: 0;
}

.lang-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.lang-tags span {
    background: rgba(0, 255, 136, 0.1);
    color: var(--primary);
    padding: 0.3rem 0.8rem;
    border-radius: 50px;
    font-size: 0.8rem;
    transition: background 0.3s ease;
}

.lang-tags span:hover {
    background: rgba(0, 255, 136, 0.2);
}

/* Make it responsive for mobile */
@media (max-width: 768px) {
    .programming-cards {
        grid-template-columns: 1fr; /* Single column on mobile */
    }
}

.site-footer {
    background: rgba(255, 255, 255, 0.03);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 3rem 0;
    margin-top: 3rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 1.5fr 1fr;
    gap: 2rem;
    align-items: center;
}

.footer-left {
    text-align: left;
}

.footer-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.footer-tagline {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

.footer-center {
    text-align: center;
}

.footer-message {
    margin-bottom: 0.5rem;
    color: rgba(255, 255, 255, 0.7);
}

.footer-accent {
    color: var(--primary);
    font-weight: 600;
}

.footer-copyright {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.5);
}

.footer-right {
    text-align: right;
}

.footer-socials {
    display: flex;
    gap: 1.5rem;
    justify-content: flex-end;
}

.social-link {
    color: rgba(255, 255, 255, 0.7);
    transition: all 0.3s ease;
}

.social-link:hover {
    color: var(--primary);
    transform: translateY(-3px);
}

/* Make it responsive */
@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }

    .footer-left, .footer-right {
        text-align: center;
    }

    .footer-socials {
        justify-content: center;
    }
}