:root {
    --primary-color: #4A90E2;
    --secondary-color: #2C3E50;
    --light-gray: #f8f9fa;
    --navbar-height: 72px;
    --scroll-offset: 10px;
    --section-padding: 4rem;
}

html {
    scroll-padding-top: calc(var(--navbar-height) + var(--scroll-offset));
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    color: var(--secondary-color);
    background-color: var(--light-gray);
    padding-top: var(--navbar-height);
}

/* Navbar Styles */
.navbar {
    padding: 1rem 0;
    background-color: white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    height: var(--navbar-height);
}

/* Section Common Styles */
section {
    padding: var(--section-padding) 0;
    min-height: auto;
    display: flex;
    align-items: center;
}

section h2 {
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--secondary-color);
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 4rem 0;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.hero-section h1 {
    font-weight: bold;
    margin-bottom: 1.5rem;
    font-size: 3.2rem;
    line-height: 1.2;
    background: linear-gradient(135deg, var(--primary-color) 0%, #2980b9 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-section .lead {
    font-size: 1.25rem;
    color: #495057;
    margin-bottom: 2rem;
}

/* How It Works Section */
#how-it-works {
    background: white;
    padding: 4rem 0 6rem;
    position: relative;
    min-height: 100vh;
}

#how-it-works h2 {
    font-size: 2.2rem;
    margin-bottom: 3.5rem;
}

#how-it-works .row {
    position: relative;
}

#how-it-works .row::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, 
        rgba(74, 144, 226, 0.1) 0%,
        rgba(74, 144, 226, 0.3) 50%,
        rgba(74, 144, 226, 0.1) 100%
    );
    transform: translateX(-50%);
}

.process-detail-card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 3px 15px rgba(0,0,0,0.08);
    height: 100%;
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    margin-bottom: 2.5rem;
    position: relative;
    transition: transform 0.3s ease;
}

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

.process-icon {
    width: 60px;
    height: 60px;
    background: rgba(74, 144, 226, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.process-icon i {
    font-size: 1.5rem;
    color: var(--primary-color);
}

.process-content {
    flex: 1;
}

.process-content h4 {
    font-size: 1.4rem;
    margin-bottom: 0.75rem;
    color: var(--secondary-color);
}

.process-content p {
    color: #6c757d;
    margin-bottom: 1rem;
    font-size: 1rem;
    line-height: 1.6;
}

.process-number {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    width: 32px;
    height: 32px;
    background: rgba(74, 144, 226, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    color: var(--primary-color);
    font-weight: 600;
}

.process-detail-card .process-details {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(0,0,0,0.05);
}

.process-details ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.process-details li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    color: #6c757d;
    font-size: 0.9rem;
}

.process-details li i {
    color: var(--primary-color);
    font-size: 0.8rem;
}

/* Features Section */
#features {
    background: var(--light-gray);
    padding: 4rem 0;
}

.feature-item {
    background: white;
    padding: 1.75rem;
    border-radius: 10px;
    text-align: center;
    margin-bottom: 1.5rem;
    box-shadow: 0 3px 10px rgba(0,0,0,0.08);
    height: 100%;
}

.feature-item i {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.feature-item h3 {
    margin-bottom: 1rem;
    color: var(--secondary-color);
}

.feature-item p {
    color: #6c757d;
    margin-bottom: 0;
}

/* Action Card */
.action-card {
    background: linear-gradient(135deg, var(--primary-color) 0%, #2980b9 100%);
    padding: 2.5rem;
    border-radius: 10px;
    color: white;
    text-align: center;
    margin-top: 2rem;
}

.action-card h3 {
    margin-bottom: 1rem;
}

.action-card .btn-primary {
    background: white;
    color: var(--primary-color);
    border: none;
    margin-top: 1rem;
}

/* Responsive Adjustments */
@media (max-width: 991px) {
    :root {
        --section-padding: 4rem;
    }

    section {
        min-height: auto;
    }

    .feature-card {
        margin-bottom: 3rem;
    }
}

@media (max-width: 768px) {
    :root {
        --navbar-height: 64px;
        --section-padding: 3rem;
    }

    section h2 {
        font-size: 2rem;
        margin-bottom: 2rem;
    }

    .process-detail-card {
        flex-direction: column;
        text-align: center;
        padding: 1.5rem;
    }

    .process-icon {
        margin: 0 auto 1rem;
    }

    .action-card {
        padding: 1.5rem;
    }
}

/* CTA Section */
.cta-section {
    padding: 5rem 0;
    background: linear-gradient(135deg, var(--primary-color) 0%, #2980b9 100%);
    color: white;
}

/* Buttons */
.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    padding: 0.5rem 1.5rem;
    border-radius: 25px;
}

.btn-primary:hover {
    background-color: #357ABD;
    border-color: #357ABD;
    transform: translateY(-1px);
}

.btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--primary-color);
    border-radius: 25px;
}

.btn-outline-primary:hover {
    background-color: var(--primary-color);
    color: white;
}

/* About Page Styles */
.about-hero-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 5rem 0;
    text-align: center;
}

.about-hero-section h1 {
    font-weight: bold;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, var(--primary-color) 0%, #2980b9 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.mission-section {
    padding: 5rem 0;
    background: white;
}

.mission-card {
    padding: 2rem;
    height: 100%;
    border-radius: 10px;
    background: white;
    box-shadow: 0 3px 15px rgba(0,0,0,0.08);
}

.mission-card h2 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-size: 2rem;
}

.values-section {
    padding: 5rem 0;
    background: var(--light-gray);
}

.value-card {
    padding: 2rem;
    text-align: center;
    background: white;
    border-radius: 10px;
    height: 100%;
    box-shadow: 0 3px 15px rgba(0,0,0,0.08);
    transition: transform 0.3s ease;
}

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

.value-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 1.5rem;
    background: rgba(74, 144, 226, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.value-icon i {
    font-size: 1.8rem;
    color: var(--primary-color);
}

.value-card h3 {
    margin-bottom: 1rem;
    color: var(--secondary-color);
}

.why-us-section {
    padding: 5rem 0;
    background: white;
}

.feature-highlight {
    text-align: center;
    padding: 2rem;
    height: 100%;
}

.feature-highlight i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.feature-highlight h3 {
    margin-bottom: 1rem;
    color: var(--secondary-color);
}

/* Footer Styles */
.footer {
    background: var(--secondary-color);
    color: white;
    padding: 4rem 0 2rem;
}

.footer h5 {
    color: white;
    margin-bottom: 1.5rem;
}

.footer ul li {
    margin-bottom: 0.5rem;
}

.footer a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer a:hover {
    color: white;
}

/* Platform Preview */
.platform-preview {
    max-width: 100%;
    margin: 0;
    transform: perspective(1000px) rotateY(-5deg) rotateX(5deg);
    transition: transform 0.3s ease;
}

.platform-preview:hover {
    transform: perspective(1000px) rotateY(-2deg) rotateX(2deg);
}

.mockup-window {
    background: white;
    border-radius: 12px;
    box-shadow: 0 25px 50px rgba(0,0,0,0.15);
    overflow: hidden;
}

.mockup-header {
    background: #f8f9fa;
    padding: 12px 20px;
    border-bottom: 1px solid #e9ecef;
    display: flex;
    align-items: center;
}

.mockup-dots {
    display: flex;
    gap: 6px;
}

.mockup-dots span {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #dee2e6;
}

.mockup-dots span:nth-child(1) { background: #ff6b6b; }
.mockup-dots span:nth-child(2) { background: #ffd93d; }
.mockup-dots span:nth-child(3) { background: #6bff7c; }

.mockup-title {
    margin-left: 20px;
    color: #6c757d;
    font-size: 14px;
}

.mockup-content {
    padding: 30px;
    background: white;
    min-height: 400px;
}

.dashboard-preview {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 20px;
}

.feedback-summary {
    background: var(--light-gray);
    border-radius: 8px;
    padding: 20px;
    display: grid;
    grid-template-rows: auto auto;
    gap: 20px;
}

.sentiment-chart {
    background: white;
    border-radius: 8px;
    height: 200px;
    position: relative;
}

.sentiment-chart::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
    height: 80%;
    background: linear-gradient(135deg, var(--primary-color) 0%, #2980b9 100%);
    opacity: 0.1;
    border-radius: 8px;
}

.key-metrics {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

.key-metrics::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 60px;
    background: repeating-linear-gradient(
        90deg,
        var(--light-gray),
        var(--light-gray) 80px,
        white 80px,
        white 100px
    );
    opacity: 0.5;
}

.recent-feedback {
    background: var(--light-gray);
    border-radius: 8px;
    padding: 20px;
    position: relative;
}

.recent-feedback::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(
        0deg,
        var(--light-gray),
        var(--light-gray) 40px,
        white 40px,
        white 60px
    );
    opacity: 0.5;
    border-radius: 8px;
}

/* Dashboard Content Styles */
.chart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.chart-header h4 {
    margin: 0;
    font-size: 1.1rem;
    color: var(--secondary-color);
}

.chart-header i {
    color: var(--primary-color);
    margin-right: 8px;
}

.chart-period {
    font-size: 0.9rem;
    color: #6c757d;
}

.chart-stats {
    display: flex;
    justify-content: space-around;
    align-items: center;
    height: 150px;
}

.stat-item {
    text-align: center;
    padding: 15px;
    border-radius: 8px;
    background: white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.stat-value {
    display: block;
    font-size: 1.8rem;
    font-weight: bold;
    margin-bottom: 5px;
}

.stat-label {
    font-size: 0.9rem;
    color: #6c757d;
}

.stat-item.positive .stat-value { color: #28a745; }
.stat-item.neutral .stat-value { color: #ffc107; }
.stat-item.negative .stat-value { color: #dc3545; }

/* Metric Cards */
.metric-card {
    background: white;
    padding: 15px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.metric-card i {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.metric-card h5 {
    margin: 10px 0;
    font-size: 0.9rem;
    color: #6c757d;
}

.metric-value {
    display: block;
    font-size: 1.4rem;
    font-weight: bold;
    color: var(--secondary-color);
    margin-bottom: 5px;
}

.metric-trend {
    font-size: 0.8rem;
    padding: 2px 6px;
    border-radius: 4px;
}

.metric-trend.positive {
    background: rgba(40, 167, 69, 0.1);
    color: #28a745;
}

.metric-trend.neutral {
    background: rgba(255, 193, 7, 0.1);
    color: #ffc107;
}

.metric-trend.negative {
    background: rgba(220, 53, 69, 0.1);
    color: #dc3545;
}

/* Recent Feedback */
.feedback-header {
    margin-bottom: 20px;
}

.feedback-header h4 {
    margin: 0;
}

/* Share Popup Styles */
.share-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.popup-content {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.popup-content h3 {
    color: var(--secondary-color);
    margin-bottom: 1.5rem;
}

.link-container {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.link-container input {
    flex: 1;
    padding: 0.5rem;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.link-container button {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    cursor: pointer;
}

.link-container button:hover {
    background: #357ABD;
}

.share-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.share-buttons button {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
}

.share-buttons img {
    width: 40px;
    height: 40px;
    transition: transform 0.2s ease;
}

.share-buttons img:hover {
    transform: scale(1.1);
}

.close-btn {
    display: block;
    margin: 0 auto;
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 0.5rem 1.5rem;
    border-radius: 4px;
    cursor: pointer;
}

.close-btn:hover {
    background: #357ABD;
}

@media (max-width: 768px) {
    .popup-content {
        padding: 1.5rem;
    }
    
    .link-container {
        flex-direction: column;
    }
    
    .link-container button {
        width: 100%;
    }
}
