@import url('https://fonts.googleapis.com/css2?family=Syncopate:wght@400;700&display=swap');

/* Base Styles */
.ideas-section {
    max-width: 1400px;
    width: 100%;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 80px;
    min-height: 600px;
    padding: 0 20px;
    box-sizing: border-box;
}

.left-content {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.main-heading {
    position: relative;
}

.heading-text {
    width: 100%;
    max-width: 1000px;
    font-size: 4.8rem;
    font-weight: 700;
    line-height: 1;
    color: #ffffff;
    letter-spacing: -2px;
    margin: 0;
    font-family: 'Syncopate', sans-serif;
    word-wrap: break-word;
    hyphens: auto;
}

.description {
    color: #666;
    font-size: clamp(0.9rem, 2vw, 1rem);
    line-height: 1.6;
    max-width: 500px;
    font-weight: 400;
    font-family: 'Arial', sans-serif;
}

.right-content {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 400px;
}

.yellow-text {
    position: absolute;
    right: 20px;
    left: -60px;
    top: 70%;
    transform: translateY(-50%);
    z-index: 2;
    cursor: default;
}

.yellow-heading {
    width: 100%;
    max-width: 800px;
    font-size: 5.5rem;
    font-weight: 700;
    color: #FFB800;
    line-height: 0.9;
    letter-spacing: -2px;
    font-family: 'Syncopate', sans-serif;
    word-wrap: break-word;
    hyphens: auto;
}

/* Animation Effects */
.heading-text {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease forwards;
}

.description {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s ease 0.2s forwards;
}

.gray-rectangle {
    opacity: 0;
    transform: scale(0.9);
    animation: scaleIn 0.8s ease 0.4s forwards;
    transition: all 0.3s ease;
}

.yellow-heading {
    opacity: 0;
    transform: translateX(30px);
    animation: slideInRight 0.8s ease 0.6s forwards;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes scaleIn {
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes slideInRight {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Enhanced Hover Effects */
.gray-rectangle:hover {
    transform: scale(1.02);
    transition: transform 0.3s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.yellow-heading:hover {
    color: #E6A500;
    transition: color 0.3s ease;
    transform: scale(1.01);
    cursor: pointer;
}

/* ===== COMPREHENSIVE RESPONSIVE DESIGN ===== */

/* 4K and Ultra-wide screens (3840px+) */
@media (min-width: 3840px) {
    .ideas-section {
        max-width: 2000px;
        gap: 120px;
        padding: 0 60px;
        min-height: 800px;
    }
    
    .left-content {
        gap: 60px;
    }
    
    .heading-text {
        font-size: 6.5rem;
        letter-spacing: -3px;
    }
    
    .yellow-heading {
        font-size: 7.5rem;
        letter-spacing: -3px;
    }
    
    .description {
        font-size: 1.3rem;
        max-width: 650px;
        line-height: 1.7;
    }
    
    .yellow-text {
        right: 40px;
        left: -100px;
    }
}

/* Large desktops (2560px - 3839px) */
@media (min-width: 2560px) and (max-width: 3839px) {
    .ideas-section {
        max-width: 1800px;
        gap: 110px;
        padding: 0 50px;
        min-height: 700px;
    }
    
    .left-content {
        gap: 55px;
    }
    
    .heading-text {
        font-size: 5.8rem;
        letter-spacing: -2.5px;
    }
    
    .yellow-heading {
        font-size: 6.8rem;
        letter-spacing: -2.5px;
    }
    
    .description {
        font-size: 1.2rem;
        max-width: 600px;
        line-height: 1.65;
    }
    
    .yellow-text {
        right: 30px;
        left: -80px;
    }
}

/* Standard large desktops (1920px - 2559px) */
@media (min-width: 1920px) and (max-width: 2559px) {
    .ideas-section {
        max-width: 1600px;
        gap: 100px;
        padding: 0 40px;
        min-height: 650px;
    }
    
    .left-content {
        gap: 50px;
    }
    
    .heading-text {
        font-size: 5.2rem;
        letter-spacing: -2px;
    }
    
    .yellow-heading {
        font-size: 6.2rem;
        letter-spacing: -2px;
    }
    
    .description {
        font-size: 1.1rem;
        max-width: 550px;
    }
    
    .yellow-text {
        right: 25px;
        left: -70px;
    }
}

/* Large Desktops (1400px - 1919px) */
@media (min-width: 1400px) and (max-width: 1919px) {
    .ideas-section {
        gap: 100px;
        padding: 0 40px;
    }
    
    .left-content {
        gap: 50px;
    }
}

/* Desktop (1200px - 1399px) */
@media (min-width: 1200px) and (max-width: 1399px) {
    .ideas-section {
        gap: 70px;
        padding: 0 30px;
    }
    
    .yellow-text {
        right: 40px;
        left: -80px;
    }
}

/* Large Tablets / Small Desktops (1024px - 1199px) */
@media (min-width: 1024px) and (max-width: 1199px) {
    .ideas-section {
        gap: 60px;
        padding: 0 25px;
    }
    
    .yellow-text {
        right: 30px;
        left: -60px;
    }
    
    .heading-text {
        font-size: clamp(3.5rem, 6vw, 4.5rem);
    }
    
    .yellow-heading {
        font-size: clamp(4rem, 7vw, 5rem);
    }
}

/* Tablets (768px - 1023px) */
@media (min-width: 768px) and (max-width: 1023px) {
    .ideas-section {
        gap: 50px;
        padding: 40px 30px;
        min-height: 500px;
    }
    
    .yellow-text {
        right: 20px;
        left: -40px;
        top: 65%;
    }
    
    .heading-text {
        font-size: clamp(3rem, 5.5vw, 4rem);
        letter-spacing: -1px;
    }
    
    .yellow-heading {
        font-size: clamp(3.5rem, 6.5vw, 4.5rem);
        letter-spacing: -1px;
    }
    
    .left-content {
        gap: 35px;
    }
    
    .description {
        max-width: 450px;
        font-size: 0.95rem;
    }
}

/* Large Mobile / Small Tablets (600px - 767px) - Single Column Layout */
@media (min-width: 600px) and (max-width: 767px) {
    .ideas-section {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
        padding: 60px 25px;
        min-height: auto;
    }
    
    .left-content {
        order: 1;
        gap: 25px;
        align-items: center;
    }
    
    .right-content {
        order: 2;
        justify-self: center;
        min-height: 250px;
        margin-top: 20px;
    }
    
    .yellow-text {
        position: relative;
        right: 0;
        left: 0;
        top: 0;
        transform: none;
        margin-top: 0;
        width: 100%;
        display: flex;
        justify-content: center;
    }
    
    .heading-text {
        font-size: clamp(2.5rem, 7vw, 3.2rem);
        max-width: none;
        width: 100%;
        text-align: center;
    }
    
    .yellow-heading {
        font-size: clamp(2.8rem, 8vw, 3.5rem);
        max-width: none;
        width: 100%;
        text-align: center;
    }
    
    .description {
        max-width: 100%;
        text-align: center;
        font-size: 0.95rem;
    }
}

/* Medium Mobile (520px - 599px) */
@media (min-width: 520px) and (max-width: 599px) {
    .ideas-section {
        grid-template-columns: 1fr;
        gap: 35px;
        text-align: center;
        padding: 55px 22px;
        min-height: auto;
    }
    
    .left-content {
        order: 1;
        gap: 22px;
        align-items: center;
    }
    
    .right-content {
        order: 2;
        justify-self: center;
        min-height: 220px;
        margin-top: 18px;
    }
    
    .yellow-text {
        position: relative;
        right: 0;
        left: 0;
        top: 0;
        transform: none;
        margin-top: 0;
        width: 100%;
        display: flex;
        justify-content: center;
    }
    
    .heading-text {
        font-size: clamp(2.3rem, 7.5vw, 3rem);
        letter-spacing: -1px;
        text-align: center;
    }
    
    .yellow-heading {
        font-size: clamp(2.6rem, 8.5vw, 3.3rem);
        letter-spacing: -1px;
        text-align: center;
    }
    
    .description {
        font-size: clamp(0.88rem, 3.2vw, 0.93rem);
        line-height: 1.55;
        max-width: 100%;
        text-align: center;
    }
}

/* Standard Mobile (480px - 519px) */
@media (min-width: 480px) and (max-width: 519px) {
    .ideas-section {
        grid-template-columns: 1fr;
        gap: 35px;
        text-align: center;
        padding: 50px 20px;
        min-height: auto;
    }
    
    .left-content {
        order: 1;
        gap: 20px;
        align-items: center;
    }
    
    .right-content {
        order: 2;
        justify-self: center;
        min-height: 200px;
        margin-top: 15px;
    }
    
    .yellow-text {
        position: relative;
        right: 0;
        left: 0;
        top: 0;
        transform: none;
        margin-top: 0;
        width: 100%;
        display: flex;
        justify-content: center;
    }
    
    .heading-text {
        font-size: clamp(2.2rem, 8vw, 2.8rem);
        letter-spacing: -1px;
        text-align: center;
    }
    
    .yellow-heading {
        font-size: clamp(2.5rem, 9vw, 3.2rem);
        letter-spacing: -1px;
        text-align: center;
    }
    
    .description {
        font-size: clamp(0.85rem, 3.5vw, 0.9rem);
        line-height: 1.5;
        max-width: 100%;
        text-align: center;
    }
}

/* Small Mobile (420px - 479px) */
@media (min-width: 420px) and (max-width: 480px) {
    .ideas-section {
        grid-template-columns: 1fr;
        gap: 32px;
        text-align: center;
        padding: 45px 18px;
        min-height: auto;
    }
    
    .left-content {
        order: 1;
        gap: 19px;
        align-items: center;
    }
    
    .right-content {
        order: 2;
        justify-self: center;
        min-height: 190px;
        margin-top: 12px;
    }
    
    .yellow-text {
        position: relative;
        right: 0;
        left: 0;
        top: 0;
        transform: none;
        margin-top: 0;
        width: 100%;
        display: flex;
        justify-content: center;
    }
    
    .heading-text {
        font-size: clamp(2rem, 8.5vw, 2.6rem);
        letter-spacing: -0.8px;
        line-height: 1.05;
        text-align: center;
    }
    
    .yellow-heading {
        font-size: clamp(2.3rem, 9.5vw, 2.9rem);
        letter-spacing: -0.8px;
        line-height: 1.05;
        text-align: center;
    }
    
    .description {
        font-size: clamp(0.82rem, 3.8vw, 0.87rem);
        line-height: 1.45;
        max-width: 100%;
        text-align: center;
    }
}

/* Small Mobile (375px - 419px) */
@media (min-width: 375px) and (max-width: 419px) {
    .ideas-section {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
        padding: 40px 15px;
        min-height: auto;
    }
    
    .left-content {
        order: 1;
        gap: 18px;
        align-items: center;
    }
    
    .right-content {
        order: 2;
        justify-self: center;
        min-height: 180px;
        margin-top: 10px;
    }
    
    .yellow-text {
        position: relative;
        right: 0;
        left: 0;
        top: 0;
        transform: none;
        margin-top: 0;
        width: 100%;
        display: flex;
        justify-content: center;
    }
    
    .heading-text {
        font-size: clamp(1.8rem, 9vw, 2.4rem);
        letter-spacing: -0.5px;
        line-height: 1.1;
        text-align: center;
    }
    
    .yellow-heading {
        font-size: clamp(2rem, 10vw, 2.8rem);
        letter-spacing: -0.5px;
        line-height: 1.1;
        text-align: center;
    }
    
    .description {
        font-size: clamp(0.8rem, 4vw, 0.85rem);
        line-height: 1.4;
        max-width: 100%;
        text-align: center;
    }
}

/* Extra Small Mobile (340px - 374px) */
@media (min-width: 340px) and (max-width: 374px) {
    .ideas-section {
        grid-template-columns: 1fr;
        gap: 28px;
        text-align: center;
        padding: 38px 13px;
        min-height: auto;
    }
    
    .left-content {
        order: 1;
        gap: 16px;
        align-items: center;
    }
    
    .right-content {
        order: 2;
        justify-self: center;
        min-height: 165px;
        margin-top: 8px;
    }
    
    .yellow-text {
        position: relative;
        right: 0;
        left: 0;
        top: 0;
        transform: none;
        margin-top: 0;
        width: 100%;
        display: flex;
        justify-content: center;
    }
    
    .heading-text {
        font-size: clamp(1.65rem, 9.5vw, 2.2rem);
        letter-spacing: -0.5px;
        line-height: 1.1;
        text-align: center;
    }
    
    .yellow-heading {
        font-size: clamp(1.85rem, 10.5vw, 2.5rem);
        letter-spacing: -0.5px;
        line-height: 1.1;
        text-align: center;
    }
    
    .description {
        font-size: clamp(0.78rem, 4.2vw, 0.82rem);
        line-height: 1.4;
        max-width: 100%;
        text-align: center;
    }
}

/* Very Small Mobile (320px - 339px) */
@media (min-width: 320px) and (max-width: 339px) {
    .ideas-section {
        grid-template-columns: 1fr;
        gap: 25px;
        text-align: center;
        padding: 35px 12px;
        min-height: auto;
    }
    
    .left-content {
        order: 1;
        gap: 15px;
        align-items: center;
    }
    
    .right-content {
        order: 2;
        justify-self: center;
        min-height: 150px;
        margin-top: 8px;
    }
    
    .yellow-text {
        position: relative;
        right: 0;
        left: 0;
        top: 0;
        transform: none;
        margin-top: 0;
        width: 100%;
        display: flex;
        justify-content: center;
    }
    
    .heading-text {
        font-size: clamp(1.6rem, 10vw, 2.2rem);
        letter-spacing: -0.5px;
        line-height: 1.1;
        text-align: center;
    }
    
    .yellow-heading {
        font-size: clamp(1.8rem, 11vw, 2.5rem);
        letter-spacing: -0.5px;
        line-height: 1.1;
        text-align: center;
    }
    
    .description {
        font-size: clamp(0.75rem, 4.5vw, 0.8rem);
        line-height: 1.4;
        max-width: 100%;
        text-align: center;
    }
}

/* Ultra Small Devices (280px - 319px) */
@media (min-width: 280px) and (max-width: 319px) {
    .ideas-section {
        grid-template-columns: 1fr;
        gap: 22px;
        text-align: center;
        padding: 32px 10px;
        min-height: auto;
    }
    
    .left-content {
        order: 1;
        gap: 13px;
        align-items: center;
    }
    
    .right-content {
        order: 2;
        justify-self: center;
        min-height: 130px;
        margin-top: 6px;
    }
    
    .yellow-text {
        position: relative;
        right: 0;
        left: 0;
        top: 0;
        transform: none;
        margin-top: 0;
        width: 100%;
        display: flex;
        justify-content: center;
    }
    
    .heading-text {
        font-size: clamp(1.4rem, 11vw, 2rem);
        letter-spacing: 0;
        line-height: 1.15;
        text-align: center;
    }
    
    .yellow-heading {
        font-size: clamp(1.6rem, 12vw, 2.2rem);
        letter-spacing: 0;
        line-height: 1.15;
        text-align: center;
    }
    
    .description {
        font-size: clamp(0.7rem, 5vw, 0.75rem);
        line-height: 1.35;
        max-width: 100%;
        text-align: center;
    }
}

/* Extra Ultra Small Devices (below 280px) */
@media (max-width: 279px) {
    .ideas-section {
        grid-template-columns: 1fr;
        gap: 20px;
        text-align: center;
        padding: 30px 8px;
        min-height: auto;
    }
    
    .left-content {
        order: 1;
        gap: 12px;
        align-items: center;
    }
    
    .right-content {
        order: 2;
        justify-self: center;
        min-height: 120px;
        margin-top: 5px;
    }
    
    .yellow-text {
        position: relative;
        right: 0;
        left: 0;
        top: 0;
        transform: none;
        margin-top: 0;
        width: 100%;
        display: flex;
        justify-content: center;
    }
    
    .heading-text {
        font-size: clamp(1.3rem, 12vw, 1.8rem);
        letter-spacing: 0;
        line-height: 1.2;
        text-align: center;
    }
    
    .yellow-heading {
        font-size: clamp(1.5rem, 13vw, 2rem);
        letter-spacing: 0;
        line-height: 1.2;
        text-align: center;
    }
    
    .description {
        font-size: clamp(0.65rem, 5.5vw, 0.7rem);
        line-height: 1.3;
        max-width: 100%;
        text-align: center;
    }
}

/* Landscape Orientation for Mobile and Tablets */
@media (max-width: 1023px) and (orientation: landscape) {
    .ideas-section {
        min-height: auto;
        gap: 25px;
        padding: 25px 20px;
    }
    
    .right-content {
        min-height: 150px;
    }
    
    .left-content {
        gap: 15px;
    }
    
    .heading-text {
        font-size: clamp(1.8rem, 6vw, 2.8rem);
    }
    
    .yellow-heading {
        font-size: clamp(2rem, 7vw, 3.2rem);
    }
    
    .description {
        font-size: clamp(0.8rem, 2.5vw, 0.9rem);
        line-height: 1.4;
    }
}

/* Specific landscape adjustments for very small screens */
@media (max-width: 767px) and (orientation: landscape) and (max-height: 500px) {
    .ideas-section {
        gap: 15px;
        padding: 15px 15px;
    }
    
    .left-content {
        gap: 10px;
    }
    
    .right-content {
        min-height: 120px;
    }
    
    .heading-text {
        font-size: clamp(1.4rem, 5vw, 2.2rem);
        line-height: 1.1;
    }
    
    .yellow-heading {
        font-size: clamp(1.6rem, 6vw, 2.5rem);
        line-height: 1.1;
    }
}

/* Accessibility Improvements */
@media (prefers-reduced-motion: reduce) {
    .heading-text,
    .description,
    .gray-rectangle,
    .yellow-heading {
        animation: none;
        opacity: 1;
        transform: none;
    }
    
    .gray-rectangle:hover,
    .yellow-heading:hover {
        transform: none;
        transition: color 0.3s ease;
    }
}

/* High DPI Display Optimization */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .heading-text,
    .yellow-heading {
        font-weight: 600;
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    .description {
        color: #999;
    }
}

/* Print Styles */
@media print {
    .ideas-section {
        grid-template-columns: 1fr;
        gap: 20px;
        color: black !important;
        padding: 20px;
        max-width: none;
    }
    
    .heading-text,
    .yellow-heading {
        color: black !important;
        font-size: 2rem !important;
        animation: none;
        opacity: 1;
        transform: none;
    }
    
    .description {
        color: #333 !important;
        animation: none;
        opacity: 1;
        transform: none;
    }
    
    .yellow-text {
        position: relative;
        right: 0;
        left: 0;
        top: 0;
        transform: none;
    }
}

/* Foldable device support */
@media (min-width: 280px) and (max-width: 653px) and (-webkit-device-pixel-ratio: 3) {
    .ideas-section {
        padding: 25px 15px;
        gap: 20px;
    }
    
    .heading-text {
        font-size: clamp(1.6rem, 8vw, 2.4rem);
    }
    
    .yellow-heading {
        font-size: clamp(1.8rem, 9vw, 2.7rem);
    }
}

/* Touch device hover state adjustments */
@media (hover: none) and (pointer: coarse) {
    .gray-rectangle:hover,
    .yellow-heading:hover {
        transform: none;
    }
    
    .gray-rectangle:active {
        transform: scale(0.98);
        transition: transform 0.1s ease;
    }
    
    .yellow-heading:active {
        color: #E6A500;
        transform: scale(0.98);
        transition: all 0.1s ease;
    }
}