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

:root {
    /* Base Colors */
    --color-dark: #252525;
    --color-darker: #1B1D1D;
    --color-light: #ffffff;
    --color-lighter: #f9f9f9;
    --color-accent: #f4d644;
    --color-accent-hover: #ffe066;
    --color-gray: #595a5a;
    --color-heart: #ffe066;
    --bg-accent: var(--color-accent);
}

.light {
    --bg-primary: var(--color-light);
    --bg-secondary: var(--color-lighter);
    --bg-accent: var(--color-accent);
    --text-primary: var(--color-dark);
    --text-secondary: var(--color-gray);
    --text-muted: rgba(37, 37, 37, 0.5);
    --text-on-accent: var(--color-dark);
    --border-color: rgba(37, 37, 37, 0.1);
    --overlay-color: rgba(0, 0, 0, 0.2);
}

.dark {
    --bg-primary: var(--color-dark);
    --bg-secondary: var(--color-darker);
    --bg-accent: var(--color-accent);
    --text-primary: var(--color-light);
    --text-secondary: var(--color-lighter);
    --text-muted: rgba(255, 255, 255, 0.5);
    --text-on-accent: var(--color-dark);
    --border-color: rgba(255, 255, 255, 0.1);
    --overlay-color: rgba(0, 0, 0, 0.2);
}

body {
    background: var(--bg-primary);
}

body,
.hero {
    overflow-x: hidden;
}

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

.container-wide {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 60px;
}

.container-full {
    width: 100%;
    padding: 0 20px;
}

/* Responsive container adjustments */
@media (max-width: 768px) {
    .container,
    .container-wide,
    .container-full {
        padding: 0 15px;
    }
}

@media (max-width: 480px) {
    .container,
    .container-wide,
    .container-full {
        padding: 0 10px;
    }
}

.hero {
    position: relative;
    min-height: 100vh;
    height: 100vh;
    background-color: var(--bg-accent);
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    /* Stack inner content so quote sits below the monogram */
    flex-direction: column;
    --monogram-size: 380px; /* default monogram size */
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 350px;
    background-image: url('../../images/img_1.png');
    background-size: cover;
    background-position: center bottom;
    background-repeat: no-repeat;
    z-index: 2;
}

/* New container to hold monogram images so we can size and center them reliably */
.hero-inner {
    position: relative;
    width: var(--monogram-size);
    height: var(--monogram-size);
    display: block;
    z-index: 3;
    margin-top: -100px;
}

@media (max-height: 700px) {
    .hero-inner {
        margin-top: -230px;
    }
}

.monogram {
    position: absolute; /* now positioned relative to .hero-inner */
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 100%; /* fill the hero-inner box */
    height: auto;
    opacity: 0;
}

.monogram-i {
    animation: slideInTop 1.2s cubic-bezier(.77, 0, .175, 1) forwards;
    z-index: 3;
}

.monogram-j {
    animation: slideInBottom 1.2s cubic-bezier(.77, 0, .175, 1) forwards;
    z-index: 3;
}

.monogram-i-shadow {
    animation: slideInTop 1.2s cubic-bezier(.77, 0, .175, 1) forwards;
    filter: brightness(0.3) saturate(0);
}

.monogram-j-shadow {
    animation: slideInBottom 1.2s cubic-bezier(.77, 0, .175, 1) forwards;
    filter: brightness(0.3) saturate(0);
}

@keyframes slideInTop {
    0% {
        opacity: 0;
        transform: translate(-50%, -120%) scale(1.1);
    }
    80% {
        opacity: 1;
        transform: translate(-50%, -52%) scale(1);
    }
    100% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

@keyframes slideInBottom {
    0% {
        opacity: 0;
        transform: translate(-50%, 120%) scale(1.1);
    }
    80% {
        opacity: 1;
        transform: translate(-50%, -48%) scale(1);
    }
    100% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

/* Glitch effect - now only applied to shadows */

.monogram.glitch {
    animation: glitch 2s infinite linear alternate;
    opacity: 1;
}

/* Add chromatic aberration effect */

.monogram.glitch::before,
.monogram.glitch::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: inherit;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    pointer-events: none;
}

.monogram-i-shadow.glitch::before,
.monogram-i-shadow.glitch::after {
    background-image: url('../../images/monogram-i.png');
}

.monogram-j-shadow.glitch::before,
.monogram-j-shadow.glitch::after {
    background-image: url('../../images/monogram-j.png');
}

.monogram.glitch::before {
    filter: blur(0.5px);
    mix-blend-mode: screen;
    animation: glitchRed 2s infinite linear alternate;
}

.monogram.glitch::after {
    filter: blur(0.5px);
    mix-blend-mode: screen;
    animation: glitchBlue 2s infinite linear alternate;
}

@keyframes glitch {
    0% {
        filter: brightness(0.3) saturate(0);
        transform: translate(-50%, -50%) scale(1);
    }
    10% {
        filter: brightness(0.3) saturate(0) blur(1px);
        transform: translate(-50%, -50%) scale(1) skewX(-2deg);
    }
    20% {
        filter: brightness(0.3) saturate(0) contrast(1.5);
        transform: translate(-50%, -50%) scale(1);
    }
    30% {
        filter: brightness(0.3) saturate(0);
        transform: translate(-50%, -50%) scale(1);
    }
    40% {
        filter: brightness(0.3) saturate(0) blur(2px);
        transform: translate(-50%, -50%) scale(1) skewY(2deg);
    }
    50% {
        filter: brightness(0.3) saturate(0);
        transform: translate(-50%, -50%) scale(1);
    }
    60% {
        filter: brightness(0.3) saturate(0) contrast(1.2);
        transform: translate(-50%, -50%) scale(1);
    }
    70% {
        filter: brightness(0.3) saturate(0);
        transform: translate(-50%, -50%) scale(1);
    }
    80% {
        filter: brightness(0.3) saturate(0) blur(1px);
        transform: translate(-50%, -50%) scale(1) skewX(1deg);
    }
    100% {
        filter: brightness(0.3) saturate(0);
        transform: translate(-50%, -50%) scale(1);
    }
}

@keyframes glitchRed {
    0% {
        filter: sepia(1) saturate(2) hue-rotate(-10deg) brightness(1.2);
        transform: translate(-51%, -49.5%) scale(1);
    }
    10% {
        filter: sepia(1) saturate(2) hue-rotate(-10deg) brightness(1.2) blur(0.5px);
        transform: translate(-52%, -49%) scale(1) skewX(-1deg);
    }
    20% {
        filter: sepia(1) saturate(2) hue-rotate(-10deg) brightness(1.3);
        transform: translate(-50.5%, -50.5%) scale(1);
    }
    30% {
        filter: sepia(1) saturate(2) hue-rotate(-10deg) brightness(1.2);
        transform: translate(-51%, -49.8%) scale(1);
    }
    40% {
        filter: sepia(1) saturate(2) hue-rotate(-10deg) brightness(1.2) blur(1px);
        transform: translate(-49%, -51%) scale(1) skewY(1deg);
    }
    50% {
        filter: sepia(1) saturate(2) hue-rotate(-10deg) brightness(1.2);
        transform: translate(-50.8%, -49.5%) scale(1);
    }
    60% {
        filter: sepia(1) saturate(2) hue-rotate(-10deg) brightness(1.3);
        transform: translate(-51.2%, -50.2%) scale(1);
    }
    70% {
        filter: sepia(1) saturate(2) hue-rotate(-10deg) brightness(1.2);
        transform: translate(-50.3%, -49.7%) scale(1);
    }
    80% {
        filter: sepia(1) saturate(2) hue-rotate(-10deg) brightness(1.2) blur(0.5px);
        transform: translate(-52%, -50%) scale(1) skewX(0.5deg);
    }
    100% {
        filter: sepia(1) saturate(2) hue-rotate(-10deg) brightness(1.2);
        transform: translate(-50.5%, -49.8%) scale(1);
    }
}

@keyframes glitchBlue {
    0% {
        filter: sepia(1) saturate(2) hue-rotate(180deg) brightness(1.1);
        transform: translate(-49%, -50.5%) scale(1);
    }
    10% {
        filter: sepia(1) saturate(2) hue-rotate(180deg) brightness(1.1) blur(0.5px);
        transform: translate(-48%, -51%) scale(1) skewX(1deg);
    }
    20% {
        filter: sepia(1) saturate(2) hue-rotate(180deg) brightness(1.2);
        transform: translate(-49.5%, -49.5%) scale(1);
    }
    30% {
        filter: sepia(1) saturate(2) hue-rotate(180deg) brightness(1.1);
        transform: translate(-49%, -50.2%) scale(1);
    }
    40% {
        filter: sepia(1) saturate(2) hue-rotate(180deg) brightness(1.1) blur(1px);
        transform: translate(-51%, -49%) scale(1) skewY(-1deg);
    }
    50% {
        filter: sepia(1) saturate(2) hue-rotate(180deg) brightness(1.1);
        transform: translate(-49.2%, -50.5%) scale(1);
    }
    60% {
        filter: sepia(1) saturate(2) hue-rotate(180deg) brightness(1.2);
        transform: translate(-48.8%, -49.8%) scale(1);
    }
    70% {
        filter: sepia(1) saturate(2) hue-rotate(180deg) brightness(1.1);
        transform: translate(-49.7%, -50.3%) scale(1);
    }
    80% {
        filter: sepia(1) saturate(2) hue-rotate(180deg) brightness(1.1) blur(0.5px);
        transform: translate(-48%, -50%) scale(1) skewX(-0.5deg);
    }
    100% {
        filter: sepia(1) saturate(2) hue-rotate(180deg) brightness(1.1);
        transform: translate(-49.5%, -50.2%) scale(1);
    }
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
    100% {
        transform: translateY(0px);
    }
}

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

h2 {
    font-size: 56px;
    position: relative;
    display: inline-block;
    font-weight: 700;
    letter-spacing: 5px;
    color: var(--text-primary);
    text-align: center;
    margin-bottom: 60px;
    text-transform: uppercase;
}

h2::after {
    content: '_';
    color: var(--color-accent);
    animation: flicker 1s infinite;
    font-weight: 700;
    font-size: 64px;
}

.about {
    position: relative;
    min-height: 100vh;
    padding: 120px 0;
    background-color: var(--bg-primary);
    display: flex;
    flex-direction: column;
    gap: 60px;
    align-items: center;
    justify-content: center;
}

.about-container {
    display: flex;
    gap: 60px;
    align-items: center;
}

.about-image {
    flex: 1;
    aspect-ratio: 3/4;
    background-color: var(--border-color);
    border-radius: 4px;
    transform: rotate(-5deg);
}

.about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 4px;
}

.about-content {
    flex: 2;
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.2s;
}

.about-content h2 {
}


.about-content p {
    font-size: 16px;
    line-height: 2;
    color: var(--text-primary);
    margin-bottom: 16px;
    font-weight: 300;
    letter-spacing: 2px;
}

.about-content .cta-buttons {
}

/* Animated arrow styles */

.about-arrow {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.about-arrow:hover {
    opacity: 1;
}

.about-arrow-icon {
    width: 50px;
    height: 50px;
    animation: bounce 2s infinite;
    transition: transform 0.3s ease;
}

.about-arrow-icon svg {
    width: 100%;
    height: 100%;
    fill: var(--bg-accent);
    color: var(--bg-accent);
    transition: fill 0.3s ease;
}

.about-arrow:hover .about-arrow-icon svg {
    fill: var(--color-accent-hover);
}

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

.pattern-block-up,
.pattern-block {
    width: 100%;
    display: block;
    max-height: 600px;
    margin: 0;
    padding: 0;
    line-height: 0;
}

.pattern-block-up img,
.pattern-block img {
    width: 100%;
    height: auto;
    display: block;
    margin: 0;
    padding: 0;
}

.pattern-block-up {
    transform: rotate(180deg);
    margin-top: 100px;
}

.stats-container {
    width: 100%;
    display: flex;
    justify-content: space-between;
    margin-top: 80px;
    padding: 60px 0;
}

.stat-item {
    flex: 1;
    text-align: center;
    padding: 0 20px;
}

.stat-number {
    font-size: 64px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 16px;
    font-family: 'IBM Plex Mono', monospace;
}

.stat-text {
    font-size: 16px;
    color: var(--text-primary);
    letter-spacing: 2px;
    text-transform: uppercase;
}

.services {
    position: relative;
    overflow: hidden;
    padding: 80px 0;
    display: flex;
    align-items: center;
    flex-direction: column;
    background: var(--bg-primary);
}

.services::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.2;
    transition: opacity 0.3s ease;
}

.services-wrapper {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 0;
    position: relative;
    z-index: 1;
}

.section-title {
    text-align: center;
    margin-bottom: 100px;
    position: relative;
    z-index: 1;
}

.services .section-title h2 {
    margin-bottom: 20px;
}

.services .section-title .section-subtitle {
    color: var(--text-secondary);
    font-size: 18px;
    letter-spacing: 3px;
    line-height: 1.6;
    margin: 0 auto;
    font-weight: 400;
}

.section-title .section-subtitle {
    margin-bottom: 80px;
    font-size: 18px;
    letter-spacing: 5px;
    opacity: 0.6;
}

.service-item {
    font-size: 96px;
    margin-bottom: 15px;
    letter-spacing: 8px;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--text-primary);
    opacity: 0.8;
    transition: opacity 0.3s ease, transform 0.2s cubic-bezier(.4, 1.4, .6, 1.2);
}

/* Service item alignment helpers */

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

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

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

.service-item div {
    transition: opacity 0.3s ease, transform 0.4s cubic-bezier(.4, 1.4, .6, 1.2), text-shadow 0.3s ease, color 0.3s ease;
    color: #252525D9;
}

/* Preserve and combine with existing directional movement rules */
.service-item:nth-child(3) div:hover,
.service-item:nth-child(5) div:hover,
.service-item:nth-child(7) div:hover {
    transform: translateX(-20px);
    text-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
    color: var(--text-primary);
}

.service-item:nth-child(2) div:hover,
.service-item:nth-child(4) div:hover,
.service-item:nth-child(6) div:hover {
    transform: translateX(20px);
    text-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
    color: var(--text-primary);

}


.portfolio {
    min-height: 100vh;
    background-color: var(--bg-primary);
    padding: 120px 0;
    color: var(--text-primary);
}

/* UI/UX Carousel Section - Splide.js customization */

.uiux-showcase {
    margin-bottom: 200px;
}

.uiux-showcase .section-title {
    margin-bottom: 60px;
}

.uiux-showcase .section-title h3 {
    font-size: 36px;
    font-weight: 600;
    letter-spacing: 3px;
    color: var(--text-primary);
    text-transform: uppercase;
    margin-bottom: 20px;
}

.uiux-showcase .section-subtitle {
    font-size: 16px;
    color: var(--text-muted);
    letter-spacing: 2px;
    opacity: 0.8;
}

.splide__slide {
    display: flex;
    justify-content: center;
}

.splide__track--draggable {
    padding-top: 20px;
    padding-bottom: 20px;
}

.uiux-carousel-item {
    width: 400px;
    height: 500px;
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    transform-style: preserve-3d;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    margin: 0 10px; /* Add margins to prevent overlap during tilt */
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15), 0 3px 10px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.uiux-carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
    transition: transform 0.3s ease;
}

.uiux-carousel-item:hover {
    transform: translateY(-15px) scale(1.03);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25), 0 8px 25px rgba(0, 0, 0, 0.15);
}

.uiux-carousel-item:hover img {
    transform: scale(1.05);
}

.uiux-carousel-item::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(244, 214, 68, 0.1) 0%, transparent 50%, rgba(0, 0, 0, 0.3) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.uiux-carousel-item:hover::after {
    opacity: 1;
}

/* Add a subtle shine effect */

.uiux-carousel-item::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.1) 50%, transparent 70%);
    transform: rotate(45deg);
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.uiux-carousel-item:hover::before {
    opacity: 1;
    transform: rotate(45deg) translateX(50px);
}

/* UI/UX Carousel Item Overlay */

.uiux-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 2;
    pointer-events: none;
}

.uiux-carousel-item:hover .uiux-overlay {
    opacity: 1;
}

.uiux-overlay-text {
    text-align: center;
    color: white;
}

.uiux-overlay-category {
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 8px;
    color: var(--color-accent);
}

.uiux-overlay-title {
    font-size: 18px;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
    line-height: 1.3;
}

/* Splide arrow customization */

.splide__arrow {
    width: 50px;
    height: 50px;
    border: 2px solid var(--text-muted);
    border-radius: 50%;
    background: var(--overlay-color);
    opacity: 1;
}

.splide__arrow:hover {
    border-color: var(--bg-accent);
    background: var(--overlay-color);
}

.splide__arrow svg {
    width: 12px;
    height: 12px;
    fill: var(--text-muted);
}

.splide__arrow:hover svg {
    fill: var(--bg-accent);
}

/* Splide pagination customization */

.splide__pagination {
    bottom: -60px;
}

.splide__pagination__page {
    width: 10px;
    height: 10px;
    background: var(--text-muted);
    opacity: 0.3;
    margin: 0 6px;
}

.splide__pagination__page.is-active {
    background: var(--bg-accent);
    opacity: 1;
    transform: scale(1.2);
}

.portfolio-categories {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-bottom: 80px;
}

.category-button {
    font-size: 16px;
    letter-spacing: 2px;
    color: var(--text-muted);
    background: none;
    border: none;
    cursor: pointer;
    text-transform: uppercase;
    padding: 10px 20px;
    transition: all 0.3s ease;
}

.category-button.active {
    color: var(--text-primary);
    border-bottom: 3px solid var(--bg-accent);
}

.category-button:hover {
    color: var(--text-primary);
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s ease;
}

.portfolio-grid.active {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

.portfolio-item {
    position: relative;
    aspect-ratio: 1;
    background-color: var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    transform-style: preserve-3d;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1), 0 2px 8px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.portfolio-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.portfolio-grid[data-category="uiux"] .portfolio-item {
    height: 350px;
    width: 100%;
}

.portfolio-grid[data-category="uiux"] .portfolio-item img {
    height: 100%;
    object-fit: cover;
    object-position: top;
}

.portfolio-item:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15), 0 4px 15px rgba(0, 0, 0, 0.1);
}

.portfolio-item:hover img {
    transform: scale(1.06);
}

.portfolio-item::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(244, 214, 68, 0.05) 0%, transparent 40%, rgba(0, 0, 0, 0.4) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.portfolio-item:hover::after {
    opacity: 1;
}

/* Add subtle shine effect to portfolio items */

.portfolio-item::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent 40%, rgba(255, 255, 255, 0.08) 50%, transparent 60%);
    transform: rotate(45deg);
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.3s ease;
    pointer-events: none;
    z-index: 1;
}

.portfolio-item:hover::before {
    opacity: 1;
    transform: rotate(45deg) translateX(30px);
}

/* Portfolio Item Overlay */

.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 2;
    pointer-events: none;
}

.portfolio-item:hover .portfolio-overlay {
    opacity: 1;
}

.portfolio-overlay-text {
    text-align: center;
    color: white;
}

.portfolio-overlay-category {
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 8px;
    color: var(--color-accent);
}

.portfolio-overlay-title {
    font-size: 18px;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
    line-height: 1.3;
}

/* Special grid layout for "ALL" category */

.portfolio-grid[data-category="all"] {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    grid-auto-rows: 350px;
}

.portfolio-grid[data-category="all"] .portfolio-item {
    aspect-ratio: unset;
}

.portfolio-grid[data-category="all"] .portfolio-item.large-left {
    grid-column: 1 / 3;
    grid-row: span 2;
}

.portfolio-grid[data-category="all"] .portfolio-item.large-right {
    grid-column: 2 / 4;
    grid-row: span 2;
}

.cta-section {
    background: var(--bg-primary);
    color: var(--text-primary);
    min-height: 60vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 120px 0;
    text-align: center;
    position: relative;
}

.cta-content {
    position: relative;
    z-index: 2;
    text-align: center;
}

.cta-content h2 {
    font-size: 40px;
    margin-bottom: 20px;
    letter-spacing: 2px;
}

.cta-content p {
    font-size: 20px;
    margin-bottom: 32px;
    color: var(--text-muted);
    line-height: 1.6;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.cta-content .cta-quote {
    font-size: 18px;
    font-weight: 300;
    margin-bottom: 32px;
    font-style: italic;
    color: var(--color-accent);
}

.cta-buttons {
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 20px;
    margin-top: 40px;
}

.cta-section .cta-buttons {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
}

.cta-button {
    display: inline-block;
    background: var(--bg-accent);
    color: var(--text-on-accent);
    font-size: 20px;
    font-weight: 600;
    padding: 16px 40px;
    border-radius: 30px;
    text-decoration: none;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    transition: background 0.2s, color 0.2s, box-shadow 0.2s, transform 0.2s;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.cta-button:hover {
    background: var(--color-accent-hover);
    color: var(--text-on-accent);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);
}

.cta-social-buttons {
    display: inline-flex;
    gap: 10px;
}

.cta-social-button {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 56px;
    height: 56px;
    background: var(--bg-accent);
    color: var(--text-on-accent);
    border-radius: 50%;
    transition: background 0.2s, transform 0.2s;
}

.cta-social-button:hover {
    background: var(--color-accent-hover);
    transform: translateY(-2px);
}

.cta-footer {
    margin-top: 60px;
    font-size: 16px;
    color: var(--text-muted);
}

/* Left Sided Navigation Menu */
.left-nav {
    width: 0;
    position: fixed;
    left: 30px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.left-nav-content {
    display: flex;
    gap: 40px;
    align-items: center;
    transform: rotate(-90deg);
    transform-origin: center center;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Scroll prevention during initial load */
body.prevent-scroll {
    overflow: hidden;
    height: 100vh;
}

.left-nav-item {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: inherit;
    text-decoration: none;
    position: relative;
    opacity: 0.6;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    white-space: nowrap;
    transform: translateX(-20px);
}

.left-nav-item:hover {
    opacity: 1;
    transform: translateX(0);
}

.left-nav-item.active {
    opacity: 1;
    color: var(--color-accent);
    transform: translateX(0);
}

.left-nav-item.active::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--color-accent);
    animation: slideInUnderline 0.3s ease-out;
}

@keyframes slideInUnderline {
    from {
        width: 0;
        opacity: 0;
    }
    to {
        width: 100%;
        opacity: 1;
    }
}

/* Logo item - always visible, changes size */
.left-nav-logo {
    font-family: 'IBM Plex Mono', monospace;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: inherit;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
    font-size: 16px;
    opacity: 1;
}

/* Menu items container */
.left-nav-menu-items {
    display: flex;
    gap: 30px;
    opacity: 0;
    transform: translateX(-40px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
}

/* When scrolled - show menu items with smaller logo */
.left-nav.scrolled .left-nav-logo {
    font-size: 12px;
    opacity: 0.8;
}

.left-nav.scrolled .left-nav-menu-items {
    opacity: 1;
    transform: translateX(0);
    pointer-events: auto;
}

.left-nav.scrolled .left-nav-menu-items .left-nav-item {
    font-size: 11px;
    animation: slideInMenuItem 0.3s ease-out forwards;
}

.left-nav.scrolled .left-nav-menu-items .left-nav-item:nth-child(1) {
    animation-delay: 0.1s;
}

.left-nav.scrolled .left-nav-menu-items .left-nav-item:nth-child(2) {
    animation-delay: 0.2s;
}

.left-nav.scrolled .left-nav-menu-items .left-nav-item:nth-child(3) {
    animation-delay: 0.3s;
}

.left-nav.scrolled .left-nav-menu-items .left-nav-item:nth-child(4) {
    animation-delay: 0.4s;
}

@keyframes slideInMenuItem {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 0.6;
        transform: translateX(0);
    }
}

/* Dynamic text colors based on section backgrounds */
.left-nav.on-hero {
    color: var(--color-dark);
}

.left-nav.on-hero .left-nav-logo,
.left-nav.on-hero .left-nav-item {
    color: var(--color-dark);
}

.left-nav.on-dark {
    color: var(--color-light);
}

.left-nav.on-dark .left-nav-logo,
.left-nav.on-dark .left-nav-item {
    color: var(--color-light);
}

.left-nav.on-light {
    color: var(--color-dark);
}

.left-nav.on-light .left-nav-logo,
.left-nav.on-light .left-nav-item {
    color: var(--color-dark);
}

/* Responsive adjustments for left nav */
@media (max-width: 1024px) {
    .left-nav {
        left: 20px;
    }

    .pattern-block-up {
        margin-top: -1px;
    }

    .technologies {
        margin-top: -1px;
    }
}

@media (max-width: 768px) {
    .left-nav {
        display: none;
    }
}

/* Technologies Section */
.technologies {
    min-height: 400px;
    padding: 80px 0;
    color: var(--text-primary);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;

    background-image: url('../../images/img_2.png');
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center center;
}

/* Overlay with darker center and top/bottom shadows */
.technologies::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse at center, rgba(37, 37, 37, 0.7) 0%, rgba(37, 37, 37, 0.3) 70%, rgba(37, 37, 37, 0.6) 100%),
    linear-gradient(
            to bottom,
            rgba(37, 37, 37, 0.7) 0%,
            rgba(37, 37, 37, 0.2) 30%,
            rgba(37, 37, 37, 0.2) 70%,
            rgba(37, 37, 37, 0.7) 100%
    );
    box-shadow: inset 0 60px 120px rgba(0, 0, 0, 0.4),
    inset 0 -60px 120px rgba(0, 0, 0, 0.4);
    z-index: 1;
}

.technologies .container {
    position: relative;
    z-index: 2;
    width: 100%;
}

.technologies-content {
    text-align: center;
    position: relative;
    z-index: 3;
    margin: 0 auto;
    padding: 0 20px;
}

.technologies-content h2 {
    margin-bottom: 20px;
    color: var(--color-light);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.7);
}

.technologies-subtitle {
    font-size: 16px;
    color: var(--color-lighter);
    letter-spacing: 2px;
    margin-bottom: 60px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.7);
}

.tech-logos-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 30px;
    max-width: 700px;
    margin: 0 auto;
}

.tech-logo {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    position: relative;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.tech-logo::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg,
    var(--color-accent) 0%,
    transparent 50%,
    var(--color-accent) 100%);
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.tech-logo:hover::before {
    opacity: 1;
}

.tech-logo:hover {
    transform: translateY(-8px) scale(1.1);
    background: rgba(244, 214, 68, 0.2);
    border-color: var(--color-accent);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4),
    0 0 30px rgba(244, 214, 68, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4),
        0 0 30px rgba(244, 214, 68, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    }
    50% {
        box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4),
        0 0 50px rgba(244, 214, 68, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    }
}

.tech-tooltip {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(-8px);
    background-color: #1a1a1a;
    color: #f4d644;
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 14px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
    pointer-events: none;
    z-index: 10;
}

.tech-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-top-color: #1a1a1a;
}

.tech-logo:hover .tech-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(-12px);
}

.light .tech-tooltip {
    background-color: #f4f4f4;
    color: #1a1a1a;
}

.light .tech-tooltip::after {
    border-top-color: #f4f4f4;
}

/* Hero quote styling (centered under the monogram) */
.hero-quote {
    position: relative;
    display: block;
    margin: 0 auto 0;
    z-index: 4;
    color: var(--color-dark);
    text-align: center;
    max-width: 900px;
    padding: 0 20px;
    font-size: 20px;
    line-height: 1.45;
    opacity: 0.95;
    pointer-events: none; /* decorative */
}

/* Responsive design for technologies section */
@media (max-width: 768px) {
    .technologies {
        min-height: 40vh;
        padding: 60px 0;
    }

    /* Disable parallax on mobile for performance */
    .technologies::before {
        background-attachment: scroll;
    }

    .technologies h2 {
        font-size: 28px;
    }

    .tech-logos-container {
        gap: 20px;
        max-width: 100%;
        padding: 0 10px;
    }

    .tech-logo {
        width: 60px;
        height: 60px;
    }

    .tech-logo svg {
        width: 30px;
        height: 30px;
    }

    .technologies-subtitle {
        font-size: 14px;
        padding: 0 20px;
    }
}

@media (max-width: 480px) {
    .tech-logos-container {
        gap: 15px;
    }

    .tech-logo {
        width: 50px;
        height: 50px;
    }

    .tech-logo svg {
        width: 25px;
        height: 25px;
    }
}

/* ===== COMPREHENSIVE RESPONSIVE DESIGN ===== */

/* Large Desktop */
@media (min-width: 1441px) {
    .container {
        max-width: 1400px;
    }

    .container-wide {
        max-width: 1600px;
    }

    h2 {
        font-size: 64px;
    }

    .service-item {
        font-size: 108px;
    }
}

/* Desktop */
@media (max-width: 1440px) {
    .left-nav {
        left: 25px;
    }
}

/* Large Tablet */
@media (max-width: 1200px) {
    .container {
        max-width: 1000px;
    }

    .container-wide {
        max-width: 1100px;
    }

    .about-container {
        gap: 40px;
    }

    .service-item {
        font-size: 80px;
        letter-spacing: 6px;
    }

    .uiux-carousel-item {
        width: 350px;
        height: 450px;
    }

    .pattern-block-up {
        margin-top: 40px;
    }
}

/* Tablet Portrait */
@media (max-width: 1024px) {
    .left-nav {
        left: 20px;
    }

    .hero {
        min-height: 100vh;
    }

    .monogram {
        width: 320px;
    }

    .about {
        padding: 100px 0;
    }

    .about-container {
        flex-direction: column;
        gap: 60px;
        text-align: center;
    }

    .about-image {
        flex: none;
        max-width: 300px;
        margin: 0 auto;
        transform: rotate(-2deg);
    }

    .about-content {
        flex: none;
    }

    /* New: center CTA buttons and social icons on tablet and smaller */
    .about-content .cta-buttons {
        justify-content: center;
        align-items: center;
    }

    .about-content .cta-buttons .cta-social-buttons {
        display: flex;
        justify-content: center;
    }

    .stats-container {
        flex-direction: column;
        gap: 40px;
        margin-top: 60px;
        padding: 40px 0;
    }

    .stat-item {
        padding: 0;
    }

    .stat-number {
        font-size: 48px;
    }

    .service-item {
        font-size: 64px;
        letter-spacing: 4px;
        margin-bottom: 10px;
    }

    .services .section-title h2 {
        margin-bottom: 15px;
    }

    .services .section-title .section-subtitle {
        font-size: 16px;
        letter-spacing: 2px;
    }

    .portfolio {
        padding: 100px 0;
    }

    .uiux-showcase {
        margin-bottom: 150px;
    }

    .portfolio-categories {
        gap: 20px;
        margin-bottom: 60px;
    }

    .category-button {
        font-size: 14px;
        padding: 8px 16px;
    }

    .portfolio-grid[data-category="all"] {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
        grid-auto-rows: 250px;
    }

    .portfolio-grid[data-category="all"] .portfolio-item.large-left,
    .portfolio-grid[data-category="all"] .portfolio-item.large-right {
        grid-column: span 2;
        grid-row: span 1;
    }

    .cta-section {
        padding: 100px 0;
    }

    .cta-content h2 {
        font-size: 32px;
    }

    .cta-content p {
        font-size: 18px;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
        gap: 30px;
    }

    .cta-social-buttons {
        justify-content: center;
    }
}

/* Large Mobile */
@media (max-width: 768px) {
    .left-nav {
        display: none;
    }

    .hero::after {
        height: 250px;
    }

    .monogram {
        width: 280px;
    }

    h2 {
        font-size: 36px;
        letter-spacing: 3px;
        margin-bottom: 40px;
    }

    h2::after {
        font-size: 42px;
    }

    .about {
        padding: 80px 0;
    }

    .about-container {
        gap: 40px;
    }

    .about-image {
        max-width: 250px;
    }

    .about-content p {
        font-size: 14px;
        line-height: 1.8;
        letter-spacing: 1px;
    }

    .about-arrow {
        bottom: 20px;
    }

    .about-arrow-icon {
        width: 40px;
        height: 40px;
    }

    .services {
        padding: 60px 0;
    }

    .section-title {
        margin-bottom: 60px;
    }

    .service-item {
        font-size: 48px;
        letter-spacing: 2px;
        margin-bottom: 8px;
    }

    .stats-container {
        gap: 30px;
        margin-top: 40px;
        padding: 30px 0;
    }

    .stat-number {
        font-size: 36px;
    }

    .stat-text {
        font-size: 14px;
    }

    .portfolio {
        padding: 80px 0;
    }

    .uiux-showcase {
        margin-bottom: 100px;
    }

    .uiux-showcase .section-title h3 {
        font-size: 28px;
        letter-spacing: 2px;
    }

    .uiux-showcase .section-subtitle {
        font-size: 14px;
    }

    .portfolio-categories {
        flex-wrap: wrap;
        gap: 15px;
        margin-bottom: 40px;
    }

    .category-button {
        font-size: 12px;
        padding: 8px 16px;
    }

    .portfolio-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .portfolio-grid[data-category="all"] {
        grid-template-columns: 1fr;
        grid-auto-rows: 300px;
    }

    .portfolio-grid[data-category="all"] .portfolio-item.large-left,
    .portfolio-grid[data-category="all"] .portfolio-item.large-right {
        grid-column: 1;
        grid-row: span 1;
    }

    .cta-section {
        padding: 80px 0;
    }

    .cta-content h2 {
        font-size: 28px;
    }

    .cta-content p {
        font-size: 16px;
        margin-bottom: 24px;
    }

    .cta-button {
        font-size: 18px;
        padding: 14px 32px;
    }

    .cta-social-button {
        width: 48px;
        height: 48px;
    }

    .cta-footer {
        margin-top: 40px;
        font-size: 14px;
    }

    .pattern-block-up {
        margin-top: 0;
    }
}

/* Mobile Portrait */
@media (max-width: 480px) {
    .hero::after {
        height: 200px;
    }

    .monogram {
        width: 240px;
    }

    h2 {
        font-size: 28px;
        letter-spacing: 2px;
        margin-bottom: 30px;
    }

    h2::after {
        font-size: 32px;
    }

    .about {
        padding: 60px 0;
    }

    .about-image {
        max-width: 200px;
    }

    .about-content p {
        font-size: 13px;
        line-height: 1.6;
    }

    .services {
        padding: 50px 0;
    }

    .section-title {
        margin-bottom: 40px;
    }

    .services .section-title .section-subtitle {
        font-size: 14px;
        letter-spacing: 1px;
    }

    .service-item {
        font-size: 32px;
        letter-spacing: 1px;
        margin-bottom: 6px;
    }

    .stats-container {
        gap: 20px;
        margin-top: 30px;
        padding: 20px 0;
    }

    .stat-number {
        font-size: 28px;
    }

    .stat-text {
        font-size: 12px;
    }

    .portfolio {
        padding: 60px 0;
    }

    .uiux-showcase {
        margin-bottom: 80px;
    }

    .uiux-showcase .section-title h3 {
        font-size: 24px;
        letter-spacing: 1px;
    }

    .portfolio-categories {
        gap: 10px;
        margin-bottom: 30px;
    }

    .category-button {
        font-size: 11px;
        padding: 5px 10px;
    }

    .portfolio-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .portfolio-grid[data-category="all"] {
        grid-template-columns: 1fr;
        grid-auto-rows: 300px;
    }

    .portfolio-grid[data-category="all"] .portfolio-item.large-left,
    .portfolio-grid[data-category="all"] .portfolio-item.large-right {
        grid-column: 1;
        grid-row: span 1;
    }

    .cta-section {
        padding: 60px 0;
    }

    .cta-content h2 {
        font-size: 24px;
        letter-spacing: 1px;
    }

    .cta-content p {
        font-size: 14px;
    }

    /* Modified: center about CTA buttons and social icons on mobile */
    .about-content .cta-buttons {
        flex-direction: column;
        align-items: center; /* changed from flex-start to center */
        gap: 20px;
    }

    .about-content .cta-buttons .cta-social-buttons {
        justify-content: center;
    }

    .cta-button {
        font-size: 16px;
        padding: 12px 24px;
    }

    .cta-social-button {
        width: 44px;
        height: 44px;
    }

    .cta-social-buttons {
        gap: 10px;
    }
}

/* ===== SCROLL PROGRESS BAR ===== */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 4px;
    background: linear-gradient(90deg,
    var(--color-accent) 0%,
    var(--color-accent-hover) 50%,
    var(--color-accent) 100%);
    z-index: 9999;
    transition: width 0.1s ease-out;
    box-shadow: 0 2px 10px rgba(244, 214, 68, 0.3);
}

.scroll-progress::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 20px;
    height: 100%;
    background: linear-gradient(90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.3) 100%);
}

.scroll-progress.scrolling {
    box-shadow: 0 2px 15px rgba(244, 214, 68, 0.5);
    animation: progressPulse 0.3s ease-out;
}

@keyframes progressPulse {
    0% {
        box-shadow: 0 2px 10px rgba(244, 214, 68, 0.3);
    }
    50% {
        box-shadow: 0 2px 20px rgba(244, 214, 68, 0.6);
    }
    100% {
        box-shadow: 0 2px 15px rgba(244, 214, 68, 0.5);
    }
}

/* ===== CUSTOM TEXT SELECTION COLORS ===== */
::selection {
    background: var(--color-accent);
    color: var(--color-dark);
    text-shadow: none;
}

::-moz-selection {
    background: var(--color-accent);
    color: var(--color-dark);
    text-shadow: none;
}

.hero ::selection {
    background: rgba(37, 37, 37, 0.8);
    color: var(--color-accent);
}

.hero ::-moz-selection {
    background: rgba(37, 37, 37, 0.8);
    color: var(--color-accent);
}

.technologies ::selection {
    background: var(--color-accent);
    color: var(--color-dark);
}

.technologies ::-moz-selection {
    background: var(--color-accent);
    color: var(--color-dark);
}

.light ::selection {
    background: var(--color-dark);
    color: var(--color-accent);
}

.light ::-moz-selection {
    background: var(--color-dark);
    color: var(--color-accent);
}

/* Reduce monogram size on tablet and mobile by changing the CSS variable */
@media (max-width: 1024px) {
    .hero {
        --monogram-size: 320px;
    }
}

@media (max-width: 768px) {
    .hero {
        --monogram-size: 280px;
    }

    .hero-quote {
        display: none; /* hide on mobile */
    }
}

@media (max-width: 480px) {
    .hero {
        --monogram-size: 240px;
    }
}
