/* ===== HERO SECTION (Portfolio page) ===== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 80px;
    background: linear-gradient(180deg, var(--bg-light) 0%, var(--bg-white) 100%);
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-text {
    /* Animation handled by GSAP */
}

.hero-greeting {
    display: inline-block;
    font-size: 1.125rem;
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 16px;
    padding: 8px 16px;
    background: rgba(37, 99, 235, 0.1);
    border-radius: 50px;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--secondary-color);
    line-height: 1.1;
    margin-bottom: 16px;
}

.hero-subtitle {
    font-size: 1.5rem;
    color: var(--text-light);
    margin-bottom: 24px;
}

.hero-description {
    font-size: 1.125rem;
    color: var(--text-color);
    margin-bottom: 32px;
    max-width: 500px;
}

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

.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
    /* Animation handled by GSAP */
}

.hero-image-wrapper {
    position: relative;
    width: 400px;
    height: 400px;
}

.hero-shape {
    width: 100%;
    height: 100%;
    background: var(--gradient);
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    animation: morphing 8s ease-in-out infinite;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-shape-inner {
    width: 85%;
    height: 85%;
    background: var(--bg-white);
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 6rem;
    animation: morphing 8s ease-in-out infinite reverse;
}

@keyframes morphing {
    0% { border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%; }
    25% { border-radius: 58% 42% 75% 25% / 76% 46% 54% 24%; }
    50% { border-radius: 50% 50% 33% 67% / 55% 27% 73% 45%; }
    75% { border-radius: 33% 67% 58% 42% / 63% 68% 32% 37%; }
    100% { border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%; }
}

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

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

/* ===== ABOUT SECTION ===== */
.about {
    background: var(--bg-light);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.about-image {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.about-image lottie-player {
    display: block;
}

.about-image-wrapper {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
}

.about-image-placeholder {
    width: 100%;
    aspect-ratio: 4/5;
    background: var(--gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 8rem;
    color: white;
}

.about-decoration {
    position: absolute;
    width: 200px;
    height: 200px;
    background: var(--gradient);
    border-radius: 20px;
    z-index: -1;
    opacity: 0.2;
}

.about-decoration-1 {
    top: -30px;
    left: -30px;
}

.about-decoration-2 {
    bottom: -30px;
    right: -30px;
}

.about-text h3 {
    font-size: 2rem;
    color: var(--secondary-color);
    margin-bottom: 24px;
}

.about-text p {
    color: var(--text-color);
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.skills-list {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 32px;
}

.skill-tag {
    padding: 10px 20px;
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-color);
    transition: all 0.3s ease;
}

.skill-tag:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: translateY(-2px);
}

/* ===== LOGO CAROUSEL SECTION ===== */
.logo-carousel {
    padding: 100px 24px;
}

.logo-carousel-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 0;
    background: #1A1A1A;
    border-radius: 24px;
    display: flex;
    flex-direction: column;
    gap: 40px;
    position: relative;
    clip-path: inset(0 0 0 0 round 24px);
}

/* Fade edges */
.logo-carousel-container::before,
.logo-carousel-container::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 150px;
    z-index: 2;
    pointer-events: none;
}

.logo-carousel-container::before {
    left: 0;
    background: linear-gradient(to right, #1A1A1A, transparent);
}

.logo-carousel-container::after {
    right: 0;
    background: linear-gradient(to left, #1A1A1A, transparent);
}

.logo-carousel-row {
    display: flex;
    align-items: center;
    gap: 60px;
    width: max-content;
    will-change: transform;
}

.logo-carousel-item {
    flex-shrink: 0;
}

.logo-carousel-item img {
    height: 80px;
    width: auto;
    object-fit: contain;
}

@media (max-width: 768px) {
    .logo-carousel {
        padding: 60px 0;
    }

    .logo-carousel-container {
        gap: 24px;
    }

    .logo-carousel-row {
        gap: 32px;
    }

    .logo-carousel-item img {
        height: 50px;
    }

    .logo-carousel-container::before,
    .logo-carousel-container::after {
        width: 50px;
    }
}

/* ===== WHAT I DO SECTION ===== */
.what-i-do {
    background: var(--bg-white);
}

.what-i-do-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.what-i-do-text .section-label {
    display: inline-block;
    margin-bottom: 12px;
}

.what-i-do-text .section-title {
    text-align: left;
    margin-bottom: 24px;
}

.what-i-do-description {
    font-size: 1.125rem;
    color: var(--text-color);
    margin-bottom: 32px;
    line-height: 1.7;
}

.what-i-do-list {
    margin-bottom: 32px;
}

.what-i-do-list li {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
    font-size: 1.05rem;
    color: var(--text-color);
}

.what-i-do-list .list-icon {
    width: 32px;
    height: 32px;
    background: rgba(37, 99, 235, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.what-i-do-list .list-icon svg {
    width: 16px;
    height: 16px;
    stroke: var(--primary-color);
}

.what-i-do-animation {
    display: flex;
    justify-content: center;
    align-items: center;
}

.what-i-do-animation lottie-player {
    width: 100%;
    max-width: 500px;
    height: auto;
}

/* ===== PROJECTS SECTION ===== */
.projects {
    background: var(--bg-white);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.project-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.project-card {
    background: var(--bg-white);
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.project-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.project-image {
    width: 100%;
    aspect-ratio: 16/10;
    background: var(--bg-white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    color: white;
    position: relative;
    overflow: hidden;
}

.project-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.1);
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

.project-content {
    padding: 28px;
}

.project-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--secondary-color);
    margin-bottom: 12px;
}

.project-description {
    color: var(--text-light);
    margin-bottom: 20px;
    font-size: 0.95rem;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.tech-tag {
    padding: 6px 12px;
    background: var(--bg-light);
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--primary-color);
}

.project-links {
    display: flex;
    gap: 16px;
}

.project-link {
    font-weight: 500;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: 6px;
}

.project-link:hover {
    text-decoration: underline;
}

.project-view-more {
    display: inline-block;
    margin-top: 16px;
    font-weight: 600;
    color: var(--primary-color);
    transition: transform 0.3s ease;
}

.project-card:hover .project-view-more {
    transform: translateX(5px);
}

/* ===== SINGLE PROJECT PAGE ===== */
.project-single {
    padding-top: 120px;
    padding-bottom: 100px;
    min-height: 100vh;
}

.project-single-hero {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 50px;
    align-items: center;
    margin-bottom: 50px;
}

.project-single-image {
    max-width: 350px;
}

.project-single-header {
    margin-bottom: 0;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--text-light);
    font-weight: 500;
    margin-bottom: 24px;
    transition: color 0.3s ease;
}

.back-link:hover {
    color: var(--primary-color);
}

.project-single-title {
    font-size: 3rem;
    font-weight: 800;
    color: var(--secondary-color);
    margin-bottom: 20px;
}

.project-single-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.project-single-image {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
}

.project-single-image img {
    width: 100%;
    height: auto;
    display: block;
}

.project-single-content {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 60px;
    align-items: start;
}

.project-single-description {
    font-size: 1.125rem;
    line-height: 1.8;
    color: var(--text-color);
}

.project-single-description h2 {
    font-size: 1.75rem;
    color: var(--secondary-color);
    margin: 40px 0 20px;
}

.project-single-description h3 {
    font-size: 1.375rem;
    color: var(--secondary-color);
    margin: 32px 0 16px;
}

.project-single-description p {
    margin-bottom: 20px;
}

.project-single-description ul,
.project-single-description ol {
    margin-bottom: 20px;
    padding-left: 24px;
}

.project-single-description li {
    margin-bottom: 10px;
}

.project-single-description img {
    border-radius: 12px;
    margin: 30px 0;
}

.project-single-sidebar {
    position: sticky;
    top: 100px;
}

.project-single-links {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.project-single-links .btn {
    justify-content: center;
}

@media (max-width: 992px) {
    .project-single-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .project-single-sidebar {
        position: static;
    }

    .project-single-links {
        flex-direction: row;
    }

    .project-single-title {
        font-size: 2.25rem;
    }

    .project-single-hero {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

@media (max-width: 768px) {
    .project-single {
        padding-top: 100px;
    }

    .project-single-title {
        font-size: 1.75rem;
    }

    .project-single-links {
        flex-direction: column;
    }
}

/* Project Highlight Section */
.project-highlight {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    margin-top: 80px;
    padding-top: 60px;
    border-top: 1px solid var(--border-color);
}

.project-highlight-text h2 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 20px;
}

.project-highlight-text .highlight-content {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-color);
}

.project-highlight-text .highlight-content p {
    margin-bottom: 16px;
}

.project-highlight-media img {
    width: 100%;
    height: auto;
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.project-highlight-media lottie-player {
    width: 100%;
    max-width: 500px;
    height: auto;
}

@media (max-width: 992px) {
    .project-highlight {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .project-highlight-media {
        order: -1;
    }
}

/* ===== CONTACT SECTION (Portfolio page) ===== */
.contact {
    background: var(--secondary-color);
    color: white;
}

.contact .section-label {
    color: rgba(255, 255, 255, 0.6);
}

.contact .section-title {
    color: white;
}

.contact .section-subtitle {
    color: rgba(255, 255, 255, 0.7);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    margin-top: 60px;
}

.contact-info h3 {
    font-size: 1.5rem;
    margin-bottom: 24px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

.contact-details h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 4px;
}

.contact-details p,
.contact-details a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
}

.contact-details a:hover {
    color: white;
}

.social-links {
    display: flex;
    gap: 16px;
    margin-top: 32px;
}

.social-link {
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    transition: all 0.3s ease;
}

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

.contact-form {
    background: rgba(255, 255, 255, 0.05);
    padding: 40px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* ===== CONTACT PAGE TEMPLATE ===== */
.contact-page {
    padding-top: 120px;
    padding-bottom: 100px;
    min-height: 100vh;
    background: var(--bg-light);
}

.contact-page-content {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 60px;
    align-items: start;
}

.contact-page-lottie {
    margin-bottom: 40px;
}

.contact-page-lottie lottie-player {
    width: 100%;
    max-width: 250px;
    height: auto;
}

.contact-page-info {
    padding: 30px;
    background: var(--bg-white);
    border-radius: 20px;
    border: 1px solid var(--border-color);
}

.contact-page-info h3 {
    font-size: 1.5rem;
    color: var(--secondary-color);
    margin-bottom: 24px;
}

.contact-page-info .contact-item {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
}

.contact-page-info .contact-icon {
    width: 50px;
    height: 50px;
    background: rgba(37, 99, 235, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--primary-color);
}

.contact-page-info .contact-details h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--secondary-color);
    margin-bottom: 4px;
}

.contact-page-info .contact-details p,
.contact-page-info .contact-details a {
    color: var(--text-light);
    font-size: 0.95rem;
}

.contact-page-info .contact-details a:hover {
    color: var(--primary-color);
}

.contact-page-info .social-links {
    display: flex;
    gap: 12px;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

.contact-page-info .social-link {
    width: 44px;
    height: 44px;
    background: rgba(37, 99, 235, 0.1);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    transition: all 0.3s ease;
}

.contact-page-info .social-link:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-3px);
}

.contact-page-form-wrapper {
    background: var(--bg-white);
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    border: 1px solid var(--border-color);
}

/* ===== PORTFOLIO RESPONSIVE ===== */
@media (max-width: 992px) {
    .hero-content,
    .about-content,
    .contact-content,
    .what-i-do-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .what-i-do-animation {
        order: -1;
    }

    .what-i-do-text .section-title {
        text-align: center;
    }

    .what-i-do-text .section-label {
        display: block;
        text-align: center;
    }

    .what-i-do-description {
        text-align: center;
    }

    .what-i-do-text .btn {
        display: block;
        text-align: center;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-visual {
        order: -1;
    }

    .hero-image-wrapper {
        width: 300px;
        height: 300px;
    }

    .about-image {
        max-width: 400px;
        margin: 0 auto;
    }

    .contact-page-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .contact-page-lottie {
        text-align: center;
    }

    .contact-page-lottie lottie-player {
        max-width: 350px;
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    .nav-container {
        flex-direction: column;
        gap: 16px;
    }

    .main-nav ul {
        gap: 20px;
    }

    .hero {
        padding-top: 140px;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1.25rem;
    }

    .hero-buttons {
        flex-direction: column;
    }

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

    .contact-page {
        padding-top: 100px;
    }

    .contact-page-form-wrapper {
        padding: 24px;
    }
}
