/* ========================================
   PORTFOLIO STYLES - Harry Nicholas
   Product Designer Portfolio
   ======================================== */

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

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: 'Cairo', sans-serif;
    overflow-x: hidden;
    background: #ffffff;
    max-width: 100vw;
}

/* Custom cursor only on desktop */
@media (pointer: fine) {
    body {
        cursor: none;
    }
}

/* Custom Cursor - Desktop only */
.custom-cursor {
    position: fixed;
    width: 40px;
    height: 40px;
    border: 2px solid #009966;
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transition: width 0.2s ease, height 0.2s ease, background-color 0.2s ease;
    transform: translate(-50%, -50%);
}

/* Hide custom cursor on touch devices */
@media (pointer: coarse) {
    .custom-cursor {
        display: none;
    }
}

.custom-cursor::before {
    content: '☝️';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 20px;
    line-height: 1;
    filter: grayscale(100%) brightness(2) drop-shadow(0 0 2px #009966) drop-shadow(0 0 4px #009966);
}

.custom-cursor::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 0;
    height: 0;
}

.custom-cursor.hover {
    width: 70px;
    height: 70px;
    background-color: rgba(110, 231, 183, 0.3);
    border-color: #6ee7b7;
}

a, button, .cursor-hover {
    cursor: none;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

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

.animate-fade-in {
    animation: fadeIn 0.8s ease-out forwards;
}

.animate-slide-in {
    animation: slideInRight 1s ease-out forwards;
}

@keyframes rollUp {
    0% {
        transform: translateY(30px);
        opacity: 0;
    }
    10% {
        transform: translateY(0);
        opacity: 1;
    }
    90% {
        transform: translateY(0);
        opacity: 1;
    }
    100% {
        transform: translateY(-30px);
        opacity: 0;
    }
}

@keyframes bounce-down {
    0%, 100% { transform: translateY(0) scale(1.15); }
    50% { transform: translateY(6px) scale(1.15); }
}

@keyframes nudge-right {
    0%, 100% { transform: translateX(0); }
    50% { transform: translateX(8px); }
}

@keyframes logo-bounce {
    0%, 100% { transform: scale(1) translateY(0); }
    25% { transform: scale(1.1) translateY(-8px); }
    50% { transform: scale(1.05) translateY(-4px); }
    75% { transform: scale(1.08) translateY(-6px); }
}

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

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

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-60px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

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

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

/* Scroll animation utilities - homepage only */
#work .project-content,
.about-content,
.clients-grid {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

/* Text flies up */
#work .project-content.animate-in,
.about-content.animate-in,
.clients-grid.animate-in {
    opacity: 1;
    transform: translateY(0);
}

/* Navigation */
nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid #f3f4f6;
    z-index: 1000;
}

.nav-container {
    max-width: 1600px;
    margin: 0 auto;
    height: 100%;
    padding: 0 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    overflow: hidden;
}

.logo {
    font-family: 'Cairo', sans-serif;
    font-size: 24px;
    font-weight: 900;
    color: #0a0a0a;
    letter-spacing: -0.5px;
    text-decoration: none;
    transition: opacity 0.2s;
}

.logo:hover {
    opacity: 0.7;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-link {
    font-size: 16px;
    font-weight: 500;
    color: #0a0a0a;
    text-decoration: none;
    transition: opacity 0.2s, color 0.3s;
    padding: 8px 12px;
    position: relative;
}

.nav-link:hover {
    opacity: 0.7;
}

.nav-link.active {
    color: #10b981;
}

/* Sliding underline indicator */
.nav-links {
    position: relative;
}

.nav-underline {
    position: absolute;
    bottom: 4px;
    left: 0;
    height: 2px;
    background: #10b981;
    border-radius: 2px;
    transition: left 0.4s cubic-bezier(0.4, 0, 0.2, 1), width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
}

.social-icons {
    display: flex;
    gap: 12px;
}

.icon-24 {
    width: 24px;
    height: 24px;
    cursor: pointer;
    transition: opacity 0.2s;
}

.icon-24:hover {
    opacity: 0.7;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    background: linear-gradient(159deg, #ecfdf5 0%, #f0fdfa 50%, #ecfeff 100%);
    padding: 0 48px;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
}

#hero-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hero-content {
    max-width: 1600px;
    width: 100%;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 80px;
    position: relative;
    z-index: 1;
}

.hero-left {
    flex: 1;
    max-width: 100%;
}

.badge {
    display: inline-block;
    padding: 8px 16px;
    background: #d0fae5;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 600;
    color: #007a55;
    letter-spacing: 1.25px;
    text-transform: uppercase;
    margin-bottom: 16px;
    overflow: hidden;
    position: relative;
}

.badge-text {
    display: inline-block;
    animation: rollUp 2s ease-in-out;
}

.hero-title {
    font-size: 72px;
    font-weight: 900;
    line-height: 80px;
    color: #0a0a0a;
    letter-spacing: -1.8px;
    margin-bottom: 32px;
}

.gradient-text {
    background: linear-gradient(90deg, #009966 0%, #009689 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 24px;
    line-height: 39px;
    color: #4a5565;
    letter-spacing: 0.07px;
    margin-bottom: 32px;
    max-width: 900px;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.primary-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 18px 32px;
    background: #101828;
    color: #ffffff;
    border: none;
    border-radius: 999px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: gap 0.5s cubic-bezier(0.25, 0.1, 0.25, 1), padding 0.5s cubic-bezier(0.25, 0.1, 0.25, 1), box-shadow 0.5s ease;
}

.primary-button svg {
    flex-shrink: 0;
    transition: transform 0.8s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.primary-button:hover {
    gap: 40px;
    box-shadow: 0 10px 30px rgba(16, 24, 40, 0.25);
}

.primary-button.no-stretch:hover {
    gap: 8px;
}

.primary-button:hover svg {
    animation: bounce-down 0.8s ease-in-out infinite;
    transform: scale(1.15);
}

.secondary-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 18px 34px;
    background: transparent;
    color: #101828;
    border: 2px solid #101828;
    border-radius: 999px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.secondary-button:hover {
    background: #101828;
    color: #ffffff;
}

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

.hero-right::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 700px;
    height: 700px;
    background: radial-gradient(circle, rgba(110, 231, 183, 0.35) 0%, rgba(110, 231, 183, 0.2) 30%, rgba(110, 231, 183, 0.1) 50%, transparent 70%);
    filter: blur(80px);
    z-index: -1;
}

.hero-image {
    width: auto;
    height: 408px;
    filter: drop-shadow(0 0 30px rgba(110, 231, 183, 0.3));
    position: relative;
    z-index: 1;
}

/* About Section */
.about-section {
    padding: 128px 48px;
    background: #ffffff;
}

.about-container {
    max-width: 1600px;
    margin: 0 auto;
    display: flex;
    gap: 80px;
    align-items: center;
    justify-content: center;
}

.about-image {
    position: relative;
    width: 420px;
    height: 560px;
}

.about-image::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 110%;
    height: 110%;
    transform: translate(-50%, -50%) rotate(4deg);
    background: linear-gradient(128deg, #94f0c2 0%, rgba(148,240,194,0.75) 100%);
    border-radius: 16px;
    z-index: 0;
    transition: transform 0.5s ease;
}

.about-image:hover::before {
    transform: translate(-50%, -50%) rotate(-4deg);
}

.about-photo {
    position: relative;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 16px;
    z-index: 1;
    transition: transform 0.5s ease;
}

.about-image:hover .about-photo {
    transform: scale(1.02);
}

.about-content {
    flex: 1;
    max-width: 714px;
}

.section-title {
    font-size: 60px;
    font-weight: 900;
    line-height: 60px;
    color: #0a0a0a;
    letter-spacing: -1.24px;
    margin-bottom: 16px;
}

.title-underline {
    width: 96px;
    height: 6px;
    background: linear-gradient(176deg, #94f0c2 0%, rgba(148,240,194,0.75) 100%);
    border-radius: 24px;
    margin-bottom: 32px;
}

.about-subtitle {
    font-size: 24px;
    font-weight: 600;
    line-height: 32px;
    color: #101828;
    margin-bottom: 24px;
}

.about-text {
    font-size: 18px;
    line-height: 29.25px;
    color: #364153;
    margin-bottom: 24px;
}

/* Case Studies */
.section-header {
    text-align: center;
    padding: 80px 48px;
    max-width: 1600px;
    margin: 0 auto;
}

.main-title {
    font-size: 72px;
    font-weight: 900;
    line-height: 72px;
    color: #0a0a0a;
    letter-spacing: -1.68px;
    margin-bottom: 16px;
}

.main-subtitle {
    font-size: 24px;
    line-height: 32px;
    color: #4a5565;
}

.featured-project {
    background: linear-gradient(169.79deg, #ecfdf5 0%, #f0fdfa 50%, #ecfeff 100%);
    padding: 80px 48px;
    overflow: hidden;
}

.featured-project-inner {
    max-width: 1600px;
    margin: 0 auto;
    display: flex;
    gap: 120px;
    align-items: center;
    justify-content: center;
}

.featured-project.purple {
    background: linear-gradient(169.72deg, #faf5ff 0%, #fdf2f8 50%, #fff1f2 100%);
}

.project-content {
    flex: 1;
    max-width: 584px;
    position: relative;
    z-index: 2;
}

.featured-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: #009966;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: 0.55px;
    text-transform: uppercase;
    margin-bottom: 32px;
}

.badge-dot {
    width: 8px;
    height: 8px;
    background: #ffffff;
    border-radius: 50%;
    animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.7);
    }
    50% {
        opacity: 0.6;
        transform: scale(1.3);
        box-shadow: 0 0 0 6px rgba(255, 255, 255, 0);
    }
}

.purple-badge {
    display: inline-block;
    padding: 8px 16px;
    background: #ffffff;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 600;
    color: #5514b4;
    letter-spacing: 1.25px;
    text-transform: uppercase;
    margin-bottom: 32px;
}

.mint-badge {
    display: inline-block;
    padding: 8px 16px;
    background: #10b981;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: 1.25px;
    text-transform: uppercase;
    margin-bottom: 32px;
}

.project-title {
    font-size: 72px;
    font-weight: 900;
    line-height: 72px;
    color: #0a0a0a;
    letter-spacing: -1.68px;
    margin-bottom: 32px;
}

.project-description {
    font-size: 24px;
    line-height: 39px;
    color: #364153;
    margin-bottom: 32px;
}

.tags {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 32px;
}

.tag {
    padding: 8px 16px;
    background: #ffffff;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 600;
    color: #364153;
}

.tag-gray {
    padding: 8px 16px;
    background: #f3f4f6;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 600;
    color: #364153;
}

.black-button {
    display: inline-flex;
    align-items: center;
    gap: 16px;
    padding: 20px 32px;
    background: #101828;
    color: #ffffff;
    border: none;
    border-radius: 999px;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    transition: gap 0.5s cubic-bezier(0.25, 0.1, 0.25, 1), padding 0.5s cubic-bezier(0.25, 0.1, 0.25, 1), box-shadow 0.5s ease;
}

.black-button svg {
    flex-shrink: 0;
}

.black-button:hover {
    gap: 40px;
    box-shadow: 0 10px 30px rgba(16, 24, 40, 0.25);
}

.black-button:hover svg {
    animation: nudge-right 0.8s ease-in-out infinite;
}

.project {
    background: #ffffff;
    padding: 89px 48px;
}

.ee-team-plan-section {
    background: rgba(235, 243, 4, 0.1);
}

.project-inner {
    max-width: 1600px;
    margin: 0 auto;
    display: flex;
    gap: 122px;
    align-items: center;
    justify-content: center;
}

.project-mockup {
    position: relative;
    flex: 1;
    max-width: 600px;
    overflow: visible;
}

.project-mockup .phone-mockup {
    width: 145%;
    height: auto;
    margin-left: -30%;
    position: relative;
    z-index: 1;
    transition: transform 0.4s ease;
}

.project-mockup .phone-mockup:hover {
    transform: rotate(-2deg) scale(1.03);
}

.project-mockup img,
.project > div:first-child img {
    transition: transform 0.4s ease;
}

.project-mockup img:hover,
.project > div:first-child img:hover {
    transform: translateY(-8px) scale(1.02);
}

/* Scroll-triggered hover animation */
@keyframes playImageHover {
    0% {
        transform: translateY(0) scale(1);
    }
    50% {
        transform: translateY(-8px) scale(1.02);
    }
    100% {
        transform: translateY(0) scale(1);
    }
}

@keyframes playPhoneHover {
    0% {
        transform: rotate(0deg) scale(1);
    }
    50% {
        transform: rotate(-2deg) scale(1.03);
    }
    100% {
        transform: rotate(0deg) scale(1);
    }
}

@keyframes playAboutImageHover {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.02);
    }
    100% {
        transform: scale(1);
    }
}

@keyframes playAboutBorderHover {
    0% {
        transform: translate(-50%, -50%) rotate(0deg);
    }
    50% {
        transform: translate(-50%, -50%) rotate(-4deg);
    }
    100% {
        transform: translate(-50%, -50%) rotate(0deg);
    }
}

.about-image.play-hover .about-photo {
    animation: playAboutImageHover 0.8s ease-in-out;
}

.about-image.play-hover::before {
    animation: playAboutBorderHover 0.8s ease-in-out;
}

.ee-team-plan-image {
    flex: 1;
    position: relative;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    margin-bottom: -8%;
}

.ee-team-plan-image img {
    max-width: 88%;
    height: auto;
}

.mockup-placeholder {
    width: 100%;
    max-width: 495px;
    height: 600px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 16px;
    text-align: center;
    padding: 40px;
    box-shadow: 0 25px 50px rgba(0,0,0,0.2);
}

.laptop-placeholder {
    width: 100%;
    max-width: 668px;
    height: 400px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 16px;
    text-align: center;
    padding: 40px;
    box-shadow: 0px 5px 100px 0px rgba(0,0,0,0.1), 0px 50px 75px 0px rgba(0,0,0,0.25);
    transform: perspective(1000px) rotateY(-15deg);
}

.tablet-placeholder {
    width: 100%;
    max-width: 600px;
    height: 450px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 16px;
    text-align: center;
    padding: 40px;
    box-shadow: 0 25px 50px rgba(0,0,0,0.2);
}

/* Work Carousel */
.carousel-wrapper {
    overflow: hidden;
    padding: 0 0 80px;
}

.carousel-track {
    display: flex;
    gap: 12px;
    width: max-content;
    animation: scroll-carousel 30s linear infinite;
}

.carousel-item {
    flex-shrink: 0;
    width: auto;
    height: 280px;
    position: relative;
}

.carousel-item img {
    height: 100%;
    width: auto;
    object-fit: contain;
    border-radius: 16px;
}

.carousel-item .placeholder-label {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 600;
    color: #6b7280;
}

/* Clients Section */
.clients-section {
    padding: 128px 48px;
}

.clients-inner {
    max-width: 1600px;
    margin: 0 auto;
}

.clients-subtitle {
    font-size: 20px;
    line-height: 28px;
    color: #4a5565;
    margin-bottom: 64px;
}

.client-logos {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 32px;
}

.logo-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.logo-box {
    border: 1px solid #f3f4f6;
    border-radius: 16px;
    padding: 33px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 162px;
    background: #fafafa;
    font-size: 14px;
    color: #999;
    text-align: center;
    transition: background 0.3s ease;
    cursor: pointer;
    width: 100%;
}

.logo-box:hover {
    background: #ffffff;
}

.logo-box img {
    transition: transform 0.3s ease, filter 0.3s ease;
}

.logo-box:hover img {
    animation: logo-bounce 0.6s ease-in-out;
    filter: brightness(1.1);
}

.company-name {
    font-size: 13px;
    font-weight: 600;
    color: #6b7280;
    text-align: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.logo-item:hover .company-name {
    opacity: 1;
}

/* Footer */
footer {
    background: #101828;
    color: #ffffff;
    padding: 100px 96px 20px;
}

.footer-content {
    max-width: 1600px;
    margin: 0 auto 80px auto;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 80px;
}

.footer-left {
    max-width: 592px;
}

.footer-right {
    margin-top: 184px;
    display: flex;
    flex-direction: column;
    gap: 24px;
    align-self: center;
}

.footer-title {
    font-size: 60px;
    font-weight: 900;
    line-height: 60px;
    letter-spacing: -1.24px;
    margin-bottom: 24px;
}

.footer-hero-image {
    width: 160px;
    height: auto;
    margin-bottom: 24px;
}

.footer-text {
    font-size: 20px;
    line-height: 28px;
    color: #99a1af;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 16px;
    cursor: pointer;
    transition: opacity 0.2s;
}

.contact-item:hover {
    opacity: 0.7;
}

.contact-text {
    font-size: 24px;
    font-weight: 600;
    line-height: 32px;
    color: #ffffff;
    text-decoration: underline;
}

/* Prevent browser auto-link detection from adding extra underlines */
.contact-item a[href^="mailto:"],
.contact-item a[href^="mailto:"]:hover,
.contact-item a[href^="mailto:"]:visited {
    text-decoration: none !important;
    color: inherit;
}

.footer-bottom {
    max-width: 1600px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 40px;
}

.copyright {
    font-size: 16px;
    color: #6a7282;
}

.logo-footer {
    font-family: 'Cairo', sans-serif;
    font-size: 24px;
    font-weight: 900;
    letter-spacing: -0.5px;
    color: #ffffff;
}

/* ========================================
   FOOTER ANIMATIONS
   ======================================== */

/* Footer content initial state */
.footer-hero-image {
    opacity: 0;
    transform: scale(0.8) rotate(-5deg);
    transition: opacity 0.8s cubic-bezier(0.34, 1.56, 0.64, 1),
                transform 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.footer-title {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease-out, transform 0.7s ease-out;
    transition-delay: 0.2s;
}

.footer-text {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
    transition-delay: 0.4s;
}

.contact-item {
    opacity: 0;
    transform: translateX(-30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.contact-item:nth-child(1) {
    transition-delay: 0.5s;
}

.contact-item:nth-child(2) {
    transition-delay: 0.6s;
}

.footer-bottom {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.7s ease-out, transform 0.7s ease-out;
    transition-delay: 0.7s;
}

/* Footer animated state */
footer.animate-in .footer-hero-image {
    opacity: 1;
    transform: scale(1) rotate(0deg);
}

footer.animate-in .footer-title {
    opacity: 1;
    transform: translateY(0);
}

footer.animate-in .footer-text {
    opacity: 1;
    transform: translateY(0);
}

footer.animate-in .contact-item {
    opacity: 1;
    transform: translateX(0);
}

footer.animate-in .footer-bottom {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive Design */

/* Medium breakpoint for heading overflow (1200px and below) */
@media (max-width: 1200px) {
    .project-title {
        font-size: 48px;
        line-height: 52px;
    }

    .main-title {
        font-size: 52px;
        line-height: 56px;
    }

    .section-title,
    .footer-title {
        font-size: 44px;
        line-height: 48px;
    }
}

/* Tablet (1024px and below) */
@media (max-width: 1024px) {
    .hero-content,
    .about-container,
    .featured-project-inner,
    .project-inner,
    .footer-content {
        flex-direction: column;
    }

    .hero {
        padding: 80px 32px;
    }

    .hero-title {
        font-size: 56px;
        line-height: 56px;
    }

    .hero-subtitle {
        font-size: 20px;
        max-width: 100%;
    }

    .hero-buttons {
        flex-wrap: wrap;
    }

    .social-icons {
        margin-left: auto;
        gap: 16px;
    }

    .about-section {
        padding: 80px 32px;
    }

    .about-container {
        gap: 48px;
    }

    .about-image {
        width: 100%;
        max-width: 420px;
        margin: 0 auto;
    }

    .about-content {
        max-width: 100%;
    }

    .section-title,
    .footer-title {
        font-size: 48px;
        line-height: 48px;
    }

    .project-title {
        font-size: 56px;
        line-height: 56px;
    }

    .main-title {
        font-size: 56px;
        line-height: 56px;
    }

    .featured-project,
    .project {
        padding: 64px 32px;
    }

    .featured-project-inner,
    .project-inner {
        gap: 48px;
    }

    .project-mockup {
        max-width: 100%;
        width: 100%;
        text-align: center;
        order: -1;
    }

    .project-mockup .phone-mockup {
        margin-left: 0;
        width: 100%;
        max-width: 100%;
    }

    .project-mockup img {
        width: 100%;
        height: auto;
        max-width: 100%;
    }

    .project-mockup[style*="margin-left"] {
        margin-left: 0 !important;
    }

    .ee-team-plan-image {
        margin-bottom: 0;
        align-items: center;
        order: -1;
        width: 100%;
    }

    .ee-team-plan-image img {
        width: 100%;
        max-width: 100%;
        height: auto;
    }

    .featured-project-inner,
    .project-inner {
        flex-direction: column;
    }

    .clients-section {
        padding: 80px 32px;
    }

    .client-logos {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 24px;
    }

    footer {
        padding: 64px 32px;
    }

    .footer-content {
        margin-bottom: 48px;
        gap: 48px;
    }
}

/* Mobile (768px and below) */
@media (max-width: 768px) {
    .hero {
        padding: 60px 24px;
        min-height: 100vh;
    }

    .hero-title {
        font-size: 40px;
        line-height: 44px;
    }

    .hero-subtitle {
        font-size: 20px;
        line-height: 28px;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 16px;
        width: 100%;
    }

    .primary-button,
    .secondary-button {
        width: 100%;
        justify-content: center;
        font-size: 18px;
    }

    .badge {
        font-size: 14px;
        padding: 6px 12px;
    }

    .nav-container {
        padding: 0 16px;
        gap: 16px;
    }

    .logo {
        flex-shrink: 0;
    }

    .nav-links {
        gap: 0;
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none; /* Firefox */
        -ms-overflow-style: none; /* IE and Edge */
        scroll-behavior: smooth;
        flex: 1;
        padding: 0 8px;
    }

    .nav-links::-webkit-scrollbar {
        display: none; /* Chrome, Safari, Opera */
    }

    .nav-link {
        font-size: 16px;
        padding: 8px 16px;
        min-height: 44px;
        display: flex;
        align-items: center;
        white-space: nowrap;
        flex-shrink: 0;
    }

    .social-icons {
        display: flex;
        gap: 20px;
        flex-shrink: 0;
        margin-left: 28px;
        padding-left: 0;
        padding-right: 16px;
    }

    .nav-link[href="#home"] {
        display: none;
    }

    .logo {
        font-size: 28px;
    }

    .about-section {
        padding: 60px 24px;
    }

    .about-container {
        gap: 32px;
    }

    .about-image {
        height: 400px;
    }

    .section-title {
        font-size: 36px;
        line-height: 40px;
    }

    .about-subtitle {
        font-size: 20px;
        line-height: 28px;
    }

    .about-text {
        font-size: 18px;
        line-height: 27px;
    }

    .section-header {
        padding: 60px 24px;
    }

    .main-title {
        font-size: 40px;
        line-height: 44px;
    }

    .main-subtitle {
        font-size: 20px;
        line-height: 28px;
    }

    .featured-project,
    .project {
        padding: 48px 24px;
    }

    .featured-project-inner,
    .project-inner {
        gap: 32px;
    }

    .project-title {
        font-size: 36px;
        line-height: 40px;
        margin-bottom: 24px;
    }

    .project-description {
        font-size: 20px;
        line-height: 30px;
        margin-bottom: 24px;
    }

    .tags {
        margin-bottom: 24px;
    }

    .tag,
    .tag-gray {
        font-size: 14px;
        padding: 6px 12px;
    }

    .black-button {
        padding: 16px 24px;
        font-size: 18px;
        width: 100%;
        justify-content: center;
    }

    .black-button:hover {
        gap: 32px;
    }

    .project-mockup {
        width: 100%;
        max-width: 100%;
        order: -1;
    }

    .project-mockup img {
        width: 100% !important;
        max-width: 100% !important;
        height: auto !important;
        margin: 0 !important;
    }

    .project-mockup .phone-mockup {
        width: 100% !important;
        max-width: 100% !important;
    }

    .ee-team-plan-image {
        margin-bottom: 0;
        align-items: center;
        order: -1;
        width: 100%;
    }

    .ee-team-plan-image img {
        width: 100%;
        max-width: 100%;
        height: auto;
    }

    .featured-project-inner,
    .project-inner {
        flex-direction: column;
    }

    .clients-section {
        padding: 60px 24px;
    }

    .clients-subtitle {
        font-size: 18px;
        margin-bottom: 48px;
    }

    .client-logos {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .logo-box {
        min-height: 120px;
        padding: 20px;
    }

    footer {
        padding: 48px 24px;
    }

    .footer-right {
        margin-top: 0;
    }

    .footer-title {
        font-size: 36px;
        line-height: 40px;
    }

    .footer-text {
        font-size: 18px;
        line-height: 27px;
    }

    .contact-text {
        font-size: 18px;
        line-height: 24px;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 24px;
        text-align: center;
    }

    .logo-footer {
        font-size: 20px;
        letter-spacing: -2px;
    }

    .carousel-item {
        height: 200px;
    }
}

/* Small mobile (480px and below) */
@media (max-width: 480px) {
    .hero-title {
        font-size: 32px;
        line-height: 36px;
    }

    .hero-subtitle {
        font-size: 18px;
        line-height: 27px;
    }

    .main-title,
    .project-title {
        font-size: 32px;
        line-height: 36px;
    }

    .section-title,
    .footer-title {
        font-size: 28px;
        line-height: 32px;
    }

    .project-description {
        font-size: 16px;
        line-height: 24px;
    }

    .client-logos {
        grid-template-columns: 1fr;
    }

    .about-image {
        height: 320px;
    }

    .carousel-item {
        height: 160px;
    }
}
