.hide-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* Colors and Variables */
:root {
    /* Core colors */
    --background: 0 0% 5%;
    --foreground: 0 0% 85%;
    --foreground-rgb: 216, 216, 216;
    --card: 0 0% 7%;
    --card-rgb: 18, 18, 18;
    --muted: 0 0% 54%;
    --muted-light: 0 0% 65%;

    /* Border and UI elements */
    --border-arrow: rgba(255, 255, 255, 0.12);
    --border-card: rgba(255, 255, 255, 0.06);
    --border-hover: rgba(255, 255, 255, 0.15);

    /* Component colors */
    --icon-bg: #1A1A1A;
    --arrow-inside-color: hsl(0 0% 8%);
    --arrow-bg-hover: rgba(255, 255, 255, 0.05);
    --ripple-color: rgba(255, 255, 255, 0.3);

    /* Layout */
    --border-radius: 20px;
    --card-padding: 28px;
    --card-padding-mobile: 20px;
    --container-padding: 20px;
    --grid-gap: 16px;

    /* Typography */
    --font-family: 'Cal Sans', sans-serif;
    --font-size-h1: clamp(24px, 5vw, 38px);
    --font-size-h2: clamp(20px, 3vw, 24px);
    --font-size-h3: 12px;
    --font-size-p: clamp(16px, 2vw, 18px);

    /* Animation */
    --transition-speed: 0.3s;
    --transition-function: cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-family);
    font-weight: 400;
    background-color: hsl(var(--background));
    color: hsl(var(--foreground));
    transition: all var(--transition-speed) var(--transition-function);
    min-height: 100vh;
    overflow-x: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Typography */
h1 {
    font-size: var(--font-size-h1);
    font-weight: 600;
    margin-bottom: 8px;
    line-height: 1.2;
    color: hsl(var(--foreground));
}

h2 {
    font-size: var(--font-size-h2);
    font-weight: 500;
    color: hsl(var(--foreground));
    line-height: 1.3;
}

h3 {
    font-size: var(--font-size-h3);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 12px;
    color: hsl(var(--muted));
}

p {
    font-size: var(--font-size-p);
    line-height: 1.5;
    color: hsl(var(--muted));
}

a {
    color: hsl(var(--foreground));
    text-decoration: none;
    transition: all var(--transition-speed) var(--transition-function);
}

a:hover {
    opacity: 0.8;
}

.highlight {
    position: relative;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 4px;
}

/* Layout */
.main-container {
    border: 1px solid var(--border-card);
    border-radius: var(--border-radius);
    width: min(95%, 1408px);
    padding: 16px;
    margin: clamp(16px, 3vw, 16px) auto;
    position: relative;
    padding-top: clamp(32px, 6vw, 48px);
}

.grid-container {
    display: grid;
    grid-template-columns: repeat(2, minmax(360px, 1fr));
    gap: var(--grid-gap);
    padding: 32px;
    padding-top: 120px;
    overflow: hidden;
    background-color: hsl(var(--background));
    transition: background-color var(--transition-speed) var(--transition-function);
    margin-top: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.close-button {
    position: absolute;
    top: clamp(20px, 4vw, 32px);
    left: 50%;
    transform: translateX(-50%);
    width: clamp(40px, 6vw, 48px);
    height: clamp(40px, 6vw, 48px);
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--icon-bg);
    border-radius: 50%;
    border: 1px solid var(--border-card);
    cursor: pointer;
    transition: all var(--transition-speed) var(--transition-function);
    z-index: 10;
}

.close-button:hover {
    background-color: var(--border-card);
    transform: translateX(-50%) scale(1.05);
}

.close-button svg {
    width: clamp(16px, 3vw, 22px);
    height: clamp(16px, 3vw, 22px);
    transition: transform 0.3s var(--transition-function);
}

.close-button:hover svg {
    transform: rotate(90deg);
}

/* Enhanced Project Cards */
.project-card {
    background-color: hsl(var(--card));
    border-radius: var(--border-radius);
    overflow: hidden;
    transition: all var(--transition-speed) var(--transition-function);
    border: 1px solid var(--border-card);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    height: auto;
    position: relative;
}

.project-card:hover {
    transform: translateY(-8px);
    border-color: var(--border-hover);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
}

.project-image {
    width: 100%;
    aspect-ratio: 16/9;
    padding: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
    transition: transform var(--transition-speed) var(--transition-function);
    border: 2px solid var(--border-arrow);
}



.project-content {
    padding: 5px 25px 25px 25px;
    display: flex;
    flex-direction: column;
    position: relative;
}

.project-info {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.project-details {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
}

.project-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.project-title {
    font-size: 20px;
    font-weight: 600;
    color: hsl(var(--foreground));
    line-height: 1.3;
    letter-spacing: 0.05em;
}

.project-subtitle {
    font-size: 14px;
    color: hsl(var(--muted-light));
    line-height: 1.4;
    font-weight: 400;
    letter-spacing: 0.05em;

}

/* Enhanced Arrow Icon - positioned inline with text */
.arrow-icon {
    bottom: 32px;
    right: 32px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--arrow-inside-color);
    border: 1px solid var(--border-arrow);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-speed) var(--transition-function);
    backdrop-filter: blur(10px);
    flex-shrink: 0;
    margin-top: 2px;
}

.arrow-icon svg {
    width: 16px;
    height: 16px;
    transform: rotate(-45deg);
    transition: all var(--transition-speed) var(--transition-function);
}

.project-card:hover .arrow-icon {
    background-color: var(--arrow-bg-hover);
    border-color: var(--border-hover);

}

.project-card:hover .arrow-icon svg {
    transform: rotate(0deg);
}

/* Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.6s var(--transition-function) forwards;
}

/* Responsive Layouts */
@media (max-width: 900px) {
    .grid-container {
        grid-template-columns: 1fr;
        padding: 24px;
        padding-top: 60px;
        gap: 24px;
    }

    .main-container {
        width: 95%;
        margin: 16px auto;
        padding: 16px;
        padding-top: 50px;
    }

    .project-card {
        height: auto;
    }
}

@media (max-width: 480px) {
    .close-button {
        top: 20px;
        width: 40px;
        height: 40px;
    }

    .close-button svg {
        width: 18px;
        height: 18px;
    }

    .grid-container {
        padding: 16px;
        padding-top: 50px;
        gap: 20px;
    }

    .project-card {
        height: auto;
    }

    .project-content {
        padding: 16px 16px 16px 16px;
    }

    .project-image {
        padding: 12px;
    }

    .project-title {
        font-size: 16px;
    }

    .project-subtitle {
        font-size: 13px;
    }

    .arrow-icon {
        width: 32px;
        height: 32px;
    }

    .arrow-icon svg {
        width: 14px;
        height: 14px;
    }

    .project-details {
        gap: 12px;
    }
}