/*
 * RootCircuit Main Page Styles - Fixed Responsive Layout
 */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Caprasimo&display=swap');

/* Global styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: #fff0e6;
    color: #183b4e;
    line-height: 1.6;
    overflow-x: hidden;
}

/* Simple sticky navbar */
.navbar {
    background-color: rgba(245, 243, 239, 0.85);
    padding: 16px 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    font-size: 1.25rem;
    font-family: 'Poppins', sans-serif;
    height: 60px;
    box-sizing: border-box;
    line-height: 35px;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 40px;
}

.logo {
    font-size: 1.4rem;
    font-weight: bold;
    color: #1a3659;
    text-decoration: none;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    margin-left: 24px;
    text-decoration: none;
    color: #1a3659;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: #7d1f42;
}

.menu {
    display: none;
    font-size: 1.8rem;
    cursor: pointer;
    color: #1a3659;
}

/* Hero Section */
.hero {
    display: flex;
    align-items: center;
    padding: 40px 0;
    background-color: #fff0e6;
}

.hero-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    align-items: center;
    gap: 60px;
}

.hero-content {
    flex: 1;
    max-width: 600px;
}

.hero-content h1 {
    font-family: 'Caprasimo', serif;
    font-size: 3.5rem;
    color: #183b4e;
    margin-top: 50px;
    margin-bottom: 30px;
    line-height: 1.2;
}

.hero-image {
    flex: 1;
    max-width: 600px;
    position: relative;
}

.hero-image img {
    width: 100%;
    height: auto;
}

.reveal-text {
    font-size: 1.5rem;
    line-height: 1.9;
    font-family: 'Poppins', sans-serif;
    color: #183b4e;
    margin-bottom: 10px;
    position: relative;
}

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

.word {
    position: relative;
    display: inline-block;
    color: #183b4e;
}

.word.highlight {
    font-weight: 700;
    color: #641b1b;
}

/* Features Section */
.features-container {
    max-width: 1200px;
    margin: 90px auto 70px auto;
    position: relative;
    z-index: 1;
    padding: 0 40px;
}

.features-title-wrapper {
    text-align: center;
}

.features-title {
    font-family: 'Caprasimo', serif;
    font-size: 2.5rem;
    color: #183b4e;
    text-align: center;
    margin-bottom: 1.5rem;
}

.features-subtitle {
    text-align: center;
    font-family: 'Poppins', sans-serif;
    font-size: 1.25rem;
    color: rgba(2, 32, 63, 0.98);
    max-width: 800px;
    margin: 0 auto 4rem;
    line-height: 1.7;
}

.features-subtitle strong {
    color: #641b1b;
}

.features-grid {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.feature-row {
    display: flex;
    justify-content: space-between;
    align-items: stretch;
    gap: 2rem;
}

.feature-card {
    position: relative;
    flex: 1;
    border: 3px solid #2d1b3d;
    border-radius: 15px;
    box-shadow: 6px 6px 0 rgba(2, 32, 63, 0.95),
    12px 12px 25px rgba(45, 27, 61, 0.2);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    min-height: 200px;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
}

.feature-card:nth-child(1)::before {
    background: linear-gradient(135deg, #8bc34a 0%, #689f38 100%);
}

.feature-row:nth-child(1) .feature-card:nth-child(2)::before {
    background: linear-gradient(135deg, #2196f3 0%, #1976d2 100%);
}

.feature-row:nth-child(2) .feature-card:nth-child(1)::before {
    background: linear-gradient(135deg, #00bcd4 0%, #0097a7 100%);
}

.feature-row:nth-child(2) .feature-card:nth-child(2)::before {
    background: linear-gradient(135deg, #3f51b5 0%, #303f9f 100%);
}

.feature-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.95);
    z-index: 2;
}

.feature-content {
    position: relative;
    z-index: 3;
    display: flex;
    align-items: center;
    padding: 2rem;
    height: 100%;
}

.feature-icon {
    flex-shrink: 0;
    margin-right: 2rem;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    backdrop-filter: blur(10px);
}

.feature-text {
    flex: 1;
}

.feature-title {
    font-size: 1.25rem;
    margin-bottom: 0.8rem;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    color: #641b1b;
}

.feature-description {
    font-size: 1.1rem;
    font-family: 'Poppins', sans-serif;
    color: rgba(8, 35, 68, 0.85);
    line-height: 1.5;
}

.feature-card:hover {
    transform: scale(1.02) translateY(-5px);
    box-shadow: 8px 8px 0 #2d1b3d,
    16px 16px 35px rgba(45, 27, 61, 0.3);
    z-index: 10;
}

.feature-card:nth-child(1):hover {
    transform: rotate(-3deg);
}

.feature-card:nth-child(2):hover {
    transform: rotate(3deg);
}

.feature-card:nth-child(3):hover {
    transform: rotate(3deg);
}

.feature-card:nth-child(4):hover {
    transform: rotate(-3deg);
}

/* CARD CONTENT */
.feature-icon {
    height: 200px;
    width: 250px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background: none;
    box-shadow: none;
    padding: 0;
    margin: 0;
    overflow: hidden;
}

.feature-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    opacity: 1;
}

/* Worker Ownership Section */
.worker-ownership {
    padding: 80px 0;
    background-color: #fff0e6;
}

.worker-ownership-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 40px;
}

.worker-ownership-content h3 {
    font-family: 'Caprasimo', serif;
    font-size: 2.5rem;
    color: #183b4e;
    margin: 50px 0 1.5rem 0;
    text-align: center;
}

.worker-ownership-content h2 {
    font-family: 'Caprasimo', serif;
    font-size: 1.8rem;
    color: #183b4e;
    margin: 50px 0 0 0;
    text-align: center;
}

.worker-ownership-content h3:first-of-type {
    margin-top: 0;
}

.worker-ownership-content p {
    font-size: 1.25rem;
    line-height: 1.7;
    color: #183b4e;
    margin-bottom: 10px;
}

.worker-ownership-content p strong {
    color: #641b1b;
}

/* Experiences Cards Section */
.experiences-section {
    padding: 50px 40px;
    position: relative;
    overflow: hidden;
}

.experiences-container {
    max-width: 1200px;
    margin: 0 auto;
}

.experiences-grid {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 30px;
    max-width: 1100px;
    margin: 0 auto;
}

.experience-card {
    width: 350px;
    min-height: 180px;
    padding: 25px;
    background: rgba(255, 255, 255, 0.9);
    border: 3px solid #2d1b3d;
    border-radius: 15px;
    position: relative;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 6px 6px 0 #2d1b3d,
    12px 12px 25px rgba(45, 27, 61, 0.2);
}

.experience-card:nth-child(1) {
    transform: rotate(-3deg);
    background: linear-gradient(135deg, #fff 0%, #fef7ff 100%);
}

.experience-card:nth-child(2) {
    transform: rotate(-1deg);
    background: linear-gradient(135deg, #fff 0%, #fff7ed 100%);
}

.experience-card:nth-child(3) {
    top: 15px;
    transform: rotate(3deg);
    background: linear-gradient(135deg, #fff 0%, #f0f9ff 100%);
}

.experience-card:hover {
    transform: rotate(0deg) scale(1.05);
    box-shadow: 8px 8px 0 #2d1b3d,
    16px 16px 35px rgba(45, 27, 61, 0.3);
    z-index: 10;
}

.experience-content {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    align-items: center;
}

.experience-card p {
    font-family: 'Poppins', sans-serif;
    font-size: 1.1rem;
    line-height: 1.5;
    margin: 0;
    color: #2d1b3d;
    font-weight: 500;
}

.experience-card:nth-child(1)::after {
    content: '😔';
    position: absolute;
    top: 5px;
    right: 5px;
    font-size: 1.2rem;
    opacity: 0.6;
}

.experience-card:nth-child(2)::after {
    content: '😤';
    position: absolute;
    top: 5px;
    right: 5px;
    font-size: 1.2rem;
    opacity: 0.6;
}

.experience-card:nth-child(3)::after {
    content: '😞';
    position: absolute;
    top: 5px;
    right: 5px;
    font-size: 1.2rem;
    opacity: 0.6;
}

/* More info link */
.more-info-container {
    display: flex;
    gap: 1rem;
    justify-content: center;
    text-align: center;
    margin: 30px 40px 50px 40px;
}

.more-info {
    text-align: center;
}

.link-secondary {
    font-size: 1.2rem;
    color: #7d1f42;
    text-decoration: none;
    font-weight: 600;
    padding: 15px 30px;
    border: 3px solid rgba(2, 32, 63, 0.98);
    border-radius: 30px;
    transition: all 0.3s ease;
    display: inline-block;
}

.link-secondary:hover {
    background-color: #7d1f42;
    color: #fff0e6;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(125, 31, 66, 0.3);
}

/* MEDIUM DESKTOP / TABLET LANDSCAPE - 1024px */
@media (max-width: 1024px) {
    .features-container {
        padding: 0 30px;
    }

    .feature-content {
        padding: 1.2rem;
    }

    .feature-icon {
        height: 180px;
        width: 220px;
        margin-right: 1.2rem;
    }
}

/* TABLET LANDSCAPE / SMALL DESKTOP - 950px */
@media (max-width: 950px) {
    .feature-row {
        flex-direction: column;
        gap: 1.5rem;
    }

    .feature-card {
        width: 100%;
        min-height: 200px;
    }

    .feature-content {
        padding: 1rem;
        flex-direction: row;
    }

    .feature-icon {
        height: 140px;
        width: 180px;
        margin-right: 1rem;
        margin-bottom: 0;
    }

    .feature-description {
        font-size: 1rem;
        line-height: 1.5;
    }
}

/* TABLET MEDIA QUERY - 1000px */
@media (max-width: 1000px) {
    .menu {
        display: block;
    }

    /* Navigation adjustments */
    .nav-container {
        padding: 0 30px;
    }

    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 64px;
        right: 30px;
        background-color: rgba(245, 243, 239, 0.95);
        border: 1px solid #ccc;
        padding: 1rem;
        gap: 1rem;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
        z-index: 1001;
    }

    .nav-links.show {
        display: flex;
    }

    /* Hero section adjustments */
    .hero-container {
        flex-direction: column;
        text-align: center;
        gap: 40px;
        padding: 0 30px;
    }

    .hero-content h1 {
        font-size: 2.8rem;
        margin-top: 30px;
    }

    .reveal-text {
        font-size: 1.35rem;
    }

    /* Features section adjustments */
    .features-container {
        padding: 0 30px;
        margin-bottom: 40px;
    }

    .features-title {
        font-size: 2.2rem;
    }

    .features-subtitle {
        font-size: 1.15rem;
        margin-bottom: 3rem;
    }

    .features-grid {
        gap: 1.2rem;
    }

    .feature-content {
        padding: 1.2rem;
    }

    .feature-card {
        min-height: 220px;
    }

    .feature-title {
        font-size: 1.15rem;
        margin-bottom: 0.5rem;
    }

    .feature-description {
        font-size: 0.95rem;
        line-height: 1.4;
    }

    .feature-description {
        font-size: 1.05rem;
    }

    /* Worker ownership adjustments */
    .worker-ownership-container {
        padding: 0 30px;
    }

    .worker-ownership-content h3 {
        font-size: 2.2rem;
    }

    .worker-ownership-content h2 {
        font-size: 1.6rem;
    }

    .worker-ownership-content p {
        font-size: 1.15rem;
    }

    /* Experiences section adjustments */
    .experiences-section {
        padding: 50px 30px;
    }

    .experiences-grid {
        gap: 25px;
    }

    .experience-card {
        width: 300px;
        min-height: 190px;
        padding: 22px;
    }

    .experience-card p {
        font-size: 1.05rem;
    }

    /* More info adjustments */
    .more-info-container {
        margin: 30px 30px 50px 30px;
    }

    .link-secondary {
        font-size: 1.15rem;
        padding: 13px 25px;
    }
}

/* MOBILE MEDIA QUERY - 768px */
@media (max-width: 768px) {
    /* Navigation adjustments */
    .nav-container {
        padding: 0 20px;
    }

    .logo {
        font-size: 1.25rem;
    }

    .nav-links {
        right: 20px;
    }

    /* Hero section adjustments */
    .hero-container {
        padding: 0 20px;
        gap: 30px;
    }

    .hero-content h1 {
        font-size: 2.2rem;
        margin-top: 20px;
        margin-bottom: 20px;
    }

    .reveal-text {
        font-size: 1.2rem;
        line-height: 1.7;
    }

    /* Features section adjustments */
    .features-container {
        padding: 0 20px;
        margin-bottom: 30px;
    }

    .features-title {
        font-size: 1.9rem;
    }

    .features-subtitle {
        font-size: 1.05rem;
        margin-bottom: 2.5rem;
    }

    .feature-row {
        flex-direction: column;
        gap: 1.5rem;
    }

    .feature-card {
        width: 100%;
        min-height: 180px;
    }

    .feature-card::before,
    .feature-card::after {
        clip-path: none !important;
    }

    .feature-card::before {
        opacity: 0.1;
    }

    .feature-content {
        padding: 1rem;
        flex-direction: column;
        text-align: center;
    }

    .feature-icon {
        height: 120px;
        width: 150px;
        margin-right: 0;
        margin-bottom: 0.5rem;
    }

    .feature-title {
        font-size: 1.1rem;
        margin-bottom: 0.6rem;
    }

    .feature-description {
        font-size: 1rem;
    }

    /* Worker ownership adjustments */
    .worker-ownership {
        padding: 60px 0;
    }

    .worker-ownership-container {
        padding: 0 20px;
    }

    .worker-ownership-content h3 {
        font-size: 1.8rem;
        margin: 40px 0 1.2rem 0;
    }

    .worker-ownership-content h2 {
        font-size: 1.5rem;
        margin: 40px 0 0 0;
    }

    .worker-ownership-content p {
        font-size: 1.1rem;
        margin-bottom: 15px;
    }

    /* Experiences section adjustments */
    .experiences-section {
        padding: 40px 20px;
    }

    .experiences-grid {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }

    .experience-card {
        width: 100%;
        max-width: 300px;
        min-height: 160px;
        padding: 20px;
    }

    .experience-card:nth-child(1),
    .experience-card:nth-child(2),
    .experience-card:nth-child(3) {
        margin-top: 0;
        transform: rotate(-1deg);
        top: 0;
    }

    .experience-card:hover {
        transform: rotate(0deg) scale(1.02);
    }

    .experience-card p {
        font-size: 1rem;
    }

    /* More info adjustments */
    .more-info-container {
        margin: 25px 20px 40px 20px;
    }

    .link-secondary {
        font-size: 1.05rem;
        padding: 12px 20px;
    }
}

/* SMALL MOBILE MEDIA QUERY - 480px */
@media (max-width: 480px) {
    /* Navigation adjustments */
    .nav-container {
        padding: 0 15px;
    }

    .logo {
        font-size: 1.15rem;
    }

    .navbar {
        font-size: 1.1rem;
    }

    /* Hero section adjustments */
    .hero-container {
        padding: 0 15px;
    }

    .hero-content h1 {
        font-size: 1.9rem;
    }

    .reveal-text {
        font-size: 1.1rem;
    }

    /* Features section adjustments */
    .features-container {
        padding: 0 15px;
    }

    .features-title {
        font-size: 1.7rem;
    }

    .features-subtitle {
        font-size: 1rem;
    }

    .feature-content {
        padding: 0.8rem;
    }

    .feature-card {
        min-height: 160px;
    }

    .feature-icon {
        height: 80px;
        width: 100px;
        margin-right: 0.8rem;
    }

    .feature-title {
        font-size: 1.05rem;
    }

    .feature-description {
        font-size: 0.95rem;
    }

    /* Worker ownership adjustments */
    .worker-ownership-container {
        padding: 0 15px;
    }

    .worker-ownership-content h3 {
        font-size: 1.6rem;
    }

    .worker-ownership-content h2 {
        font-size: 1.35rem;
    }

    .worker-ownership-content p {
        font-size: 1.05rem;
    }

    /* Experiences section adjustments */
    .experiences-section {
        padding: 30px 15px;
    }

    .experience-card {
        max-width: 280px;
        padding: 18px;
    }

    .experience-card p {
        font-size: 0.95rem;
    }

    /* More info adjustments */
    .more-info-container {
        margin: 20px 15px 30px 15px;
    }

    .link-secondary {
        font-size: 1rem;
        padding: 10px 18px;
    }
}
