/* Methodology Page Styles */

/* Section Spacing */
.methodology-section {
    padding: 4rem 2rem;
    background: var(--section-bg);
}

.methodology-section:nth-child(even) {
    background: white;
}

/* Methodology Cards */
.methodology-card {
    max-width: 1200px;
    margin: 0 auto;
    background: var(--card-bg);
    border-radius: 20px;
    padding: 3rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
}

.methodology-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(to right, var(--gradient-start), var(--gradient-end));
}

.methodology-icon {
    font-size: 3rem;
    color: var(--main-color);
    margin-bottom: 2rem;
    text-align: center;
}

.methodology-card h2 {
    font-size: 2.5rem;
    color: var(--header-color);
    margin-bottom: 2rem;
    text-align: center;
    position: relative;
    padding-bottom: 1rem;
}

.methodology-card h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: var(--main-color);
    border-radius: 2px;
}

/* Process Steps */
.process-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.step {
    background: white;
    padding: 2rem;
    border-radius: 16px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    position: relative;
    transition: transform 0.3s ease;
}

.step:hover {
    transform: translateY(-5px);
}

.step-number {
    position: absolute;
    top: -15px;
    left: -15px;
    width: 40px;
    height: 40px;
    background: var(--main-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2rem;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.step h4 {
    color: var(--header-color);
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.step ul {
    list-style: none;
    padding: 0;
}

.step ul li {
    margin-bottom: 0.8rem;
    padding-left: 1.5rem;
    position: relative;
}

.step ul li::before {
    content: '•';
    color: var(--main-color);
    position: absolute;
    left: 0;
    font-size: 1.2rem;
}

/* Development Stages */
.development-stages {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.stage {
    background: white;
    padding: 2rem;
    border-radius: 16px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

.stage:hover {
    transform: translateY(-5px);
}

.stage h4 {
    color: var(--header-color);
    margin-bottom: 1rem;
    font-size: 1.3rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.stage h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--main-color);
    transition: width 0.3s ease;
}

.stage:hover h4::after {
    width: 60px;
}

/* Sensory Types */
.sensory-types {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.sensory-type {
    background: white;
    padding: 2rem;
    border-radius: 16px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

.sensory-type:hover {
    transform: translateY(-5px);
}

.sensory-type h3 {
    color: var(--header-color);
    margin-bottom: 1rem;
    font-size: 1.5rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.sensory-type h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--main-color);
    transition: width 0.3s ease;
}

.sensory-type:hover h3::after {
    width: 60px;
}

/* Content Box */
.content-box {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
    background: var(--card-bg);
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
}

/* Comparison Table */
.comparison-table {
    overflow-x: auto;
    margin-top: 2rem;
    padding: 1.5rem;
    background: white;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    width: 100%;
}

.comparison-table table {
    width: 100%;
    min-width: 1000px;
    border-collapse: separate;
    border-spacing: 0;
    border-radius: 16px;
    overflow: hidden;
}

.comparison-table th {
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    color: white;
    padding: 1.5rem;
    text-align: left;
    font-weight: 600;
    font-size: 1.1rem;
    white-space: nowrap;
    position: relative;
    overflow: hidden;
}

.comparison-table th::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0) 100%);
    pointer-events: none;
}

.comparison-table th:first-child {
    border-top-left-radius: 16px;
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
}

.comparison-table th:first-child::after {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0) 100%);
}

.comparison-table td {
    padding: 1.2rem 1.5rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    background: white;
    font-size: 1.1rem;
    vertical-align: middle;
}

.comparison-table td:first-child {
    font-weight: 500;
    color: var(--header-color);
    white-space: nowrap;
}

.comparison-table td:first-child i {
    margin-right: 0.8rem;
    color: var(--main-color);
    font-size: 1.2rem;
    width: 1.5rem;
    text-align: center;
}

.comparison-table td i.fa-check-circle {
    color: #2ecc71;
    font-size: 1.3rem;
}

.comparison-table td i.fa-times-circle {
    color: #e74c3c;
    font-size: 1.3rem;
}

.age-note {
    font-size: 0.9rem;
    color: #666;
    margin-left: 0.5rem;
}

.comparison-table tr:last-child td {
    border-bottom: none;
}

.comparison-table tr:hover td {
    background: rgba(52, 152, 219, 0.05);
}

/* Responsive table styles */
@media (max-width: 768px) {
    .comparison-table {
        margin: 1rem -1rem;
        padding: 0.5rem;
        border-radius: 0;
    }

    .comparison-table table {
        font-size: 0.9rem;
    }

    .comparison-table th,
    .comparison-table td {
        padding: 1rem;
    }

    .comparison-table td:first-child {
        white-space: normal;
    }

    .age-note {
        display: block;
        margin-top: 0.3rem;
        margin-left: 2.3rem;
    }
}

/* Animation Effects */
.methodology-card,
.step,
.stage,
.sensory-type {
    animation: fadeInUp 0.6s ease-out forwards;
    opacity: 0;
}

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

/* Staggered Animation Delays */
#adult-deafblind .methodology-card { animation-delay: 0.1s; }
#baby-deafblind .methodology-card { animation-delay: 0.2s; }
#single-sensory .methodology-card { animation-delay: 0.3s; }

.step:nth-child(1) { animation-delay: 0.2s; }
.step:nth-child(2) { animation-delay: 0.3s; }
.step:nth-child(3) { animation-delay: 0.4s; }

.stage:nth-child(1) { animation-delay: 0.2s; }
.stage:nth-child(2) { animation-delay: 0.3s; }
.stage:nth-child(3) { animation-delay: 0.4s; }

.sensory-type:nth-child(1) { animation-delay: 0.2s; }
.sensory-type:nth-child(2) { animation-delay: 0.3s; }

/* Methodology Overview Section */
#methodology-overview {
    padding: 4rem 2rem;
    background: linear-gradient(135deg, var(--gradient-start) 0%, var(--gradient-end) 100%);
    color: white;
    position: relative;
    overflow: hidden;
}

#methodology-overview::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.1;
}

#methodology-overview .content-box {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 3rem;
    max-width: 1000px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

#methodology-overview .content-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

#methodology-overview .header {
    color: white;
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    position: relative;
    display: inline-block;
}

#methodology-overview .header::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: white;
    border-radius: 2px;
    transition: width 0.3s ease;
}

#methodology-overview .content-box:hover .header::after {
    width: 120px;
}

#methodology-overview p {
    font-size: 1.2rem;
    line-height: 1.8;
    margin: 2rem 0;
    opacity: 0.9;
}

#methodology-overview .methodology-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

#methodology-overview .stat-item {
    text-align: center;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    transition: transform 0.3s ease;
}

#methodology-overview .stat-item:hover {
    transform: translateY(-5px);
}

#methodology-overview .stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: white;
}

#methodology-overview .stat-label {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.9);
}

@media (max-width: 768px) {
    #methodology-overview {
        padding: 3rem 1rem;
    }

    #methodology-overview .content-box {
        padding: 2rem;
    }

    #methodology-overview .header {
        font-size: 2rem;
    }

    #methodology-overview .methodology-stats {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}

/* Methodology Images */
.methodology-image {
    margin: 2rem auto;
    text-align: center;
    max-width: 800px;
    position: relative;
}

.methodology-device {
    width: 100%;
    max-width: 600px;
    height: auto;
    border-radius: 20px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background: white;
    padding: 1rem;
}

.methodology-device:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.image-caption {
    margin-top: 1rem;
    font-size: 1.1rem;
    color: var(--text-color);
    opacity: 0.8;
    font-style: italic;
}

/* Responsive image styles */
@media (max-width: 768px) {
    .methodology-image {
        margin: 1.5rem auto;
    }

    .methodology-device {
        max-width: 100%;
        padding: 0.5rem;
    }

    .image-caption {
        font-size: 1rem;
        padding: 0 1rem;
    }
} 