/* Import Poppins Font */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&display=swap');

/* Touchscreen Home Styles - Green Theme Design */

/* Reset and Base Styles */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Poppins', sans-serif;
}

body {
    font-family: 'Poppins', sans-serif;
    background: #f8fffe;
    min-height: 100vh;
    overflow-x: hidden;
    width: 100%;
    max-width: 1080px;
    margin: 0 auto;
    font-size: clamp(14px, 1.5vw, 18px);
}

html {
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
}

/* Header Styles - New Geometric Design */
.header-container {
    background: linear-gradient(135deg, #059669 0%, #047857 50%, #065f46 100%);
    padding: 2rem 0;
    position: relative;
    overflow: hidden;
    min-height: 320px;
    clip-path: polygon(0 0, 100% 0, 100% 85%, 50% 100%, 0 85%);
    margin-bottom: 3rem;
}

.header-bg-shape {
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: linear-gradient(45deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0.05) 100%);
    border-radius: 50%;
    transform: rotate(45deg);
}

.header-bg-shape::before {
    content: '';
    position: absolute;
    top: 20%;
    left: 20%;
    width: 60%;
    height: 60%;
    background: rgba(255,255,255,0.08);
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(180deg); }
}

.header-content {
    max-width: 90%;
    margin: 0 auto;
    padding: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 2;
    text-align: center;
    flex-direction: column;
    gap: 2rem;
    min-height: 250px;
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 2rem;
    flex-direction: column;
}

.logo-img {
    width: clamp(90px, 12vw, 140px);
    height: clamp(90px, 12vw, 140px);
    border-radius: 50%;
    background: white;
    padding: 1rem;
    box-shadow: 0 15px 35px rgba(0,0,0,0.2);
    border: 4px solid rgba(255,255,255,0.3);
    transition: transform 0.3s ease;
}

.logo-img:hover {
    transform: scale(1.05);
}

.header-text {
    color: white;
    text-align: center;
}

.header-text h1 {
    font-size: clamp(2.2rem, 5.5vw, 3.8rem);
    font-weight: 800;
    margin-bottom: 0.5rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    letter-spacing: -0.02em;
}

.header-text p {
    font-size: clamp(1.1rem, 2.8vw, 1.8rem);
    opacity: 0.95;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.2);
    font-weight: 500;
}

.header-subtitle {
    font-size: clamp(0.9rem, 2vw, 1.3rem);
    opacity: 0.8;
    margin-top: 0.75rem;
    font-weight: 300;
    letter-spacing: 0.5px;
}

/* Main Content */
.main-content {
    max-width: 90%;
    margin: 0 auto;
    padding: 0 2rem 3rem 2rem;
    position: relative;
    z-index: 2;
    background: transparent;
}

/* Survey Section */
.survey-section {
    background: white;
    border-radius: 2rem;
    padding: 3rem 2.5rem;
    margin-bottom: 3rem;
    text-align: center;
    box-shadow: 0 20px 60px rgba(5, 150, 105, 0.1);
    border: 1px solid rgba(5, 150, 105, 0.1);
    position: relative;
    overflow: hidden;
}

/* Ensure satisfaction cards are above pattern */
.satisfaction-cards {
    position: relative;
    z-index: 2;
    display: flex;
    gap: 2rem;
    margin-bottom: 3rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Survey Badge */
.survey-badge {
    display: inline-block;
    background: linear-gradient(135deg, #059669, #10b981);
    color: white;
    padding: 0.5rem 1.5rem;
    border-radius: 2rem;
    font-size: clamp(0.8rem, 1.8vw, 1.1rem);
    font-weight: 600;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.survey-title {
    font-size: clamp(1.3rem, 3.2vw, 2rem);
    font-weight: 700;
    color: #064e3b;
    margin-bottom: 2.5rem;
    line-height: 1.4;
}

/* Satisfaction Cards */
.satisfaction-cards {
    display: flex;
    gap: 2rem;
    margin-bottom: 3rem;
    justify-content: center;
    flex-wrap: wrap;
}

.satisfaction-card {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    color: white;
    padding: 2.5rem 2rem;
    border-radius: 1.5rem;
    text-align: center;
    min-width: clamp(220px, 28vw, 300px);
    box-shadow: 0 15px 40px rgba(5, 150, 105, 0.3);
    flex: 1;
    max-width: 350px;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease;
}

/* Add rotating elements to satisfaction cards */
.rotating-element {
    position: absolute;
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    z-index: 0;
}

.rotating-element.bottom-left {
    width: 120px;
    height: 120px;
    background: rgba(255,255,255,0.1);
    bottom: -60px;
    left: -60px;
    animation: rotate-element 8s linear infinite;
}

.rotating-element.top-right {
    width: 100px;
    height: 100px;
    background: rgba(255,255,255,0.1);
    top: -50px;
    right: -50px;
    animation: rotate-element 6s linear infinite reverse;
}

@keyframes rotate-element {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Make sure card content is above the rotating elements */
.card-icon, .satisfaction-card h3, .satisfaction-score, .satisfaction-grade, .satisfaction-label {
    position: relative;
    z-index: 1;
}

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

.satisfaction-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
}

.satisfaction-card.quality {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
    box-shadow: 0 15px 40px rgba(220, 38, 38, 0.3);
}

.card-icon {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 1rem;
    opacity: 0.9;
}

.satisfaction-card h3 {
    font-size: clamp(1rem, 2.2vw, 1.5rem);
    margin-bottom: 1.5rem;
    opacity: 0.95;
    color: white;
    font-weight: 600;
}

.satisfaction-score {
    font-size: clamp(2.8rem, 6.5vw, 4.5rem);
    font-weight: 800;
    margin: 1rem 0;
    color: white;
    position: relative;
    z-index: 1;
}

.satisfaction-grade {
    font-size: clamp(3.5rem, 7.5vw, 5.5rem);
    font-weight: 800;
    margin: 1rem 0;
    color: white;
    position: relative;
    z-index: 1;
}

.satisfaction-label {
    font-size: clamp(1.1rem, 2.8vw, 1.8rem);
    font-weight: 600;
    margin-top: 0.75rem;
    color: white;
    position: relative;
    z-index: 1;
}

/* Start Survey Button */
.start-survey-btn {
    background: linear-gradient(135deg, #059669 0%, #10b981 100%);
    color: white;
    border: none;
    padding: clamp(1.8rem, 3.5vw, 2.5rem) clamp(2.5rem, 4.5vw, 3.5rem);
    font-size: clamp(1.3rem, 2.8vw, 2.2rem);
    font-weight: 700;
    border-radius: 4rem;
    cursor: pointer;
    box-shadow: 0 15px 40px rgba(5, 150, 105, 0.4);
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    text-decoration: none;
    white-space: nowrap;
    position: relative;
    overflow: hidden;
}

.start-survey-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.start-survey-btn:hover::before {
    left: 100%;
}

.start-survey-btn:hover {
    color: white;
    text-decoration: none;
    transform: translateY(-3px);
    box-shadow: 0 20px 50px rgba(5, 150, 105, 0.5);
}

.start-survey-btn:active {
    transform: translateY(0);
}

/* Statistics Container */
.statistics-container {
    background: white;
    border-radius: 2rem;
    padding: 3rem 2.5rem;
    margin-bottom: 3rem;
    box-shadow: 0 20px 60px rgba(5, 150, 105, 0.1);
    border: 1px solid rgba(5, 150, 105, 0.1);
    position: relative;
    overflow: hidden;
}

.statistics-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #059669, #10b981, #34d399);
}

.statistics-title {
    font-size: clamp(1.5rem, 3.5vw, 2.2rem);
    font-weight: 700;
    color: #064e3b;
    margin-bottom: 2.5rem;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Statistics Section */
.statistics-section {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem;
}

.stat-card {
    border-radius: 1.5rem;
    padding: 2.5rem;
    box-shadow: 0 10px 25px rgba(0,0,0,0.05);
    background: #f8fffe;
    border: 1px solid rgba(5, 150, 105, 0.1);
    position: relative;
    overflow: hidden;
    
}

.stat-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #059669, #10b981);
}

.stat-card h3 {
    font-size: clamp(1.2rem, 2.5vw, 1.75rem);
    color: #064e3b;
    margin-bottom: 2rem;
    font-weight: 700;
    text-align: center;
}

.stat-table {
    width: 100%;
}

.stat-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 0;
    border-bottom: 1px solid rgba(5, 150, 105, 0.1);
}

.stat-row:last-child {
    border-bottom: none;
}

.stat-label {
    color: #374151;
    font-size: clamp(1rem, 2vw, 1.4rem);
    font-weight: 500;
}

.stat-value {
    font-weight: 700;
    font-size: clamp(1.1rem, 2.2vw, 1.6rem);
    color: #059669;
    background: rgba(5, 150, 105, 0.1);
    padding: 0.75rem 1.25rem;
    border-radius: 0.75rem;
    min-width: 80px;
    text-align: center;
}

/* Service Quality Indicators */
.service-indicators {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

.service-indicator {
    display: flex;
    align-items: center;
    padding: 1.5rem 2rem;
    border-radius: 1.25rem;
    color: white;
    font-weight: 600;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    transition: transform 0.3s ease;
}

.service-indicator:hover {
    transform: translateX(5px);
}

.service-indicator::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 5px;
    background: rgba(255,255,255,0.4);
}

.service-indicator .indicator-code {
    font-size: clamp(1.3rem, 2.8vw, 2rem);
    font-weight: 800;
    margin-right: 1.5rem;
    min-width: 70px;
}

.service-indicator .indicator-text {
    flex: 1;
    font-size: clamp(1.1rem, 2.2vw, 1.7rem);
    font-weight: 500;
}

.service-indicator .indicator-score {
    font-size: clamp(1.4rem, 2.8vw, 2.2rem);
    font-weight: 800;
}

/* Updated color variations for service indicators */
.service-indicator.u1 { background: linear-gradient(135deg, #059669 0%, #047857 100%); }
.service-indicator.u2 { background: linear-gradient(135deg, #0891b2 0%, #0e7490 100%); }
.service-indicator.u3 { background: linear-gradient(135deg, #7c3aed 0%, #6d28d9 100%); }
.service-indicator.u4 { background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%); }
.service-indicator.u5 { background: linear-gradient(135deg, #ea580c 0%, #c2410c 100%); }
.service-indicator.u6 { background: linear-gradient(135deg, #ca8a04 0%, #a16207 100%); }
.service-indicator.u7 { background: linear-gradient(135deg, #059669 0%, #047857 100%); }
.service-indicator.u8 { background: linear-gradient(135deg, #0891b2 0%, #0e7490 100%); }
.service-indicator.u9 { background: linear-gradient(135deg, #7c3aed 0%, #6d28d9 100%); }

/* Admin Access Button */
.admin-access-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
}

.admin-access-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 1.5rem;
    background: rgba(6, 78, 59, 0.95);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(16, 185, 129, 0.3);
    box-shadow: 0 8px 25px rgba(6, 78, 59, 0.3);
}

.admin-access-btn:hover {
    background: rgba(6, 78, 59, 1);
    color: white;
    text-decoration: none;
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(6, 78, 59, 0.4);
}

.admin-access-btn i {
    font-size: 1rem;
}

/* Responsive Design */
@media (max-width: 1080px) {
    .header-container {
        padding: 1.5rem 0;
        min-height: 300px;
        margin-bottom: 2.5rem;
    }
    
    body {
        width: 100%;
        font-size: 16px;
    }
    
    .header-content {
        max-width: 95%;
        padding: 1.5rem;
    }
    
    .main-content {
        max-width: 95%;
        padding: 0 1rem 2rem 1rem;
    }
    
    .satisfaction-cards {
        gap: 1.5rem;
        flex-direction: row;
    }
    
    .satisfaction-card {
        min-width: calc(50% - 0.75rem);
        max-width: calc(50% - 0.75rem);
    }
    
    .statistics-container {
        padding: 2.5rem 2rem;
        margin-bottom: 2.5rem;
    }
    
    .statistics-section {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .header-container {
        padding: 1.5rem 0;
        min-height: 280px;
        margin-bottom: 2rem;
        clip-path: polygon(0 0, 100% 0, 100% 90%, 50% 100%, 0 90%);
    }
    
    .header-content {
        gap: 1.5rem;
        min-height: 200px;
        padding: 1rem;
    }
    
    .logo-section {
        gap: 1.5rem;
    }
    
    .satisfaction-cards {
        flex-direction: column;
        align-items: center;
    }
    
    .satisfaction-card {
        width: 100%;
        max-width: 400px;
    }
    
    .statistics-container {
        padding: 2rem 1.5rem;
        margin-bottom: 2rem;
    }
    
    .statistics-section {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .service-indicator {
        flex-direction: column;
        text-align: center;
        gap: 0.75rem;
        padding: 1.5rem;
    }
    
    .service-indicator .indicator-code {
        margin-right: 0;
        margin-bottom: 0.5rem;
    }
}

@media (max-width: 480px) {
    .header-container {
        padding: 1.25rem 0;
        min-height: 250px;
        margin-bottom: 1.5rem;
    }
    
    .header-content {
        gap: 1rem;
        min-height: 180px;
        padding: 1rem;
    }
    
    .logo-section {
        gap: 1rem;
    }
    
    .admin-access-container {
        bottom: 15px;
        right: 15px;
    }
    
    .admin-access-btn {
        padding: 0.8rem 1.2rem;
        font-size: 0.85rem;
    }
    
    .statistics-container {
        padding: 1.5rem 1rem;
        margin-bottom: 1.5rem;
    }
}

/* Ensure proper scaling on all devices */
@media screen and (max-width: 1080px) {
    html {
        font-size: calc(14px + (18 - 14) * ((100vw - 320px) / (1080 - 320)));
    }
}
