/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8fafc;
}

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

/* Navigation */
.navbar {
    background: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1.25rem;
    font-weight: 700;
    color: #6366f1;
}

.logo-icon {
    font-size: 1.5rem;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-menu a {
    text-decoration: none;
    color: #64748b;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: #6366f1;
}

/* Hero Section */
.hero {
    margin-top: 70px;
    padding: 80px 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    display: flex;
    align-items: center;
    min-height: 80vh;
}

.hero-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 20px;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

.cta-button {
    background: white;
    color: #6366f1;
    padding: 15px 30px;
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.hero-image img {
    width: 100%;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

/* Features Section */
.features {
    padding: 100px 0;
    background: white;
}

.features h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 60px;
    color: #1e293b;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.feature-card {
    text-align: center;
    padding: 40px 20px;
    border-radius: 20px;
    background: #f8fafc;
    transition: transform 0.3s;
}

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

.feature-icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: #1e293b;
}

.feature-card p {
    color: #64748b;
}

/* How It Works Section */
.how-it-works {
    padding: 100px 0;
    background: #f8fafc;
}

.how-it-works h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 80px;
    color: #1e293b;
}

.steps {
    display: grid;
    gap: 60px;
}

.step {
    display: grid;
    grid-template-columns: 80px 1fr 300px;
    gap: 40px;
    align-items: center;
}

.step:nth-child(even) {
    grid-template-columns: 300px 1fr 80px;
}

.step:nth-child(even) .step-number {
    order: 3;
}

.step:nth-child(even) .step-content {
    order: 2;
    text-align: right;
}

.step:nth-child(even) .step-image {
    order: 1;
}

.step-number {
    font-size: 2rem;
    font-weight: 800;
    color: #6366f1;
    background: white;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 25px rgba(99, 102, 241, 0.2);
}

.step-content h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: #1e293b;
}

.step-content p {
    color: #64748b;
}

.step-image img {
    width: 100%;
    border-radius: 15px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

/* Testimonials Section */
.testimonials {
    padding: 100px 0;
    background: white;
}

.testimonials h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 60px;
    color: #1e293b;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
}

.testimonial {
    background: #f8fafc;
    padding: 30px;
    border-radius: 20px;
    border-left: 4px solid #6366f1;
}

.testimonial p {
    margin-bottom: 20px;
    font-style: italic;
    color: #475569;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 15px;
}

.author-avatar img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
}

.author-name {
    font-weight: 600;
    color: #1e293b;
}

.author-school {
    color: #64748b;
    font-size: 0.9rem;
}

/* CTA Section */
.cta-section {
    padding: 100px 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-align: center;
}

.cta-section h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.cta-section p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

/* Sign Up Form Styles */
.signup-section {
    margin-top: 70px;
    padding: 60px 0;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.signup-card {
    background: white;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    max-width: 600px;
    margin: 0 auto;
}

.signup-card h2 {
    text-align: center;
    margin-bottom: 10px;
    color: #1e293b;
}

.signup-card > p {
    text-align: center;
    color: #64748b;
    margin-bottom: 30px;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: #e2e8f0;
    border-radius: 4px;
    margin-bottom: 10px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #6366f1, #8b5cf6);
    transition: width 0.3s;
}

.step-indicator {
    text-align: center;
    font-size: 0.9rem;
    color: #64748b;
    margin-bottom: 30px;
}

.signup-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    margin-bottom: 5px;
    font-weight: 500;
    color: #374151;
}

.form-group input,
.form-group select {
    padding: 12px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #6366f1;
}

.password-input {
    position: relative;
}

.toggle-password {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.2rem;
}

.password-requirements {
    margin-top: 10px;
    font-size: 0.9rem;
}

.requirement {
    display: flex;
    align-items: center;
    gap: 5px;
    color: #10b981;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
    width: auto;
}

.terms-link {
    color: #6366f1;
    text-decoration: none;
}

.next-button {
    background: #6366f1;
    color: white;
    padding: 15px 30px;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s;
}

.next-button:hover {
    background: #4f46e5;
    transform: translateY(-2px);
}

.arrow {
    font-size: 1.2rem;
}

/* Survey Styles */
.survey-section {
    margin-top: 70px;
    padding: 60px 0;
    min-height: 100vh;
}

.survey-card {
    background: white;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    max-width: 800px;
    margin: 0 auto;
}

.survey-card h2 {
    text-align: center;
    margin-bottom: 10px;
    color: #1e293b;
}

.survey-card > p {
    text-align: center;
    color: #64748b;
    margin-bottom: 30px;
}

.survey-question {
    margin-bottom: 40px;
}

.survey-question h3 {
    margin-bottom: 10px;
    color: #1e293b;
}

.survey-question > p {
    color: #64748b;
    margin-bottom: 20px;
}

.preference-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.preference-option {
    background: #f8fafc;
    padding: 20px;
    border-radius: 15px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    border: 2px solid transparent;
}

.preference-option:hover {
    background: #e2e8f0;
    transform: translateY(-2px);
}

.preference-option.selected {
    background: #eef2ff;
    border-color: #6366f1;
}

.option-image {
    margin-bottom: 15px;
}

.option-image img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
}

.flexible-icon {
    font-size: 3rem;
    color: #6366f1;
}

.preference-option h4 {
    margin-bottom: 5px;
    color: #1e293b;
}

.preference-option p {
    color: #64748b;
    font-size: 0.9rem;
}

/* Search Page Styles */
.search-section {
    margin-top: 70px;
    padding: 40px 0;
    min-height: 100vh;
}

.search-section h2 {
    text-align: center;
    margin-bottom: 40px;
    color: #1e293b;
}

.search-layout {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 40px;
}

.filters-sidebar {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    height: fit-content;
}

.filters-header {
    margin-bottom: 30px;
}

.filters-header h3 {
    color: #1e293b;
    font-size: 1.2rem;
}

.filter-group {
    margin-bottom: 20px;
}

.filter-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #374151;
}

.filter-group input,
.filter-group select {
    width: 100%;
    padding: 10px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 0.9rem;
}

.filter-group input:focus,
.filter-group select:focus {
    outline: none;
    border-color: #6366f1;
}

.filter-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 30px;
}

.apply-filters {
    background: #6366f1;
    color: white;
    padding: 12px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
}

.clear-filters {
    background: transparent;
    color: #6366f1;
    padding: 12px;
    border: 2px solid #6366f1;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
}

.search-results {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.featured-profile {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 30px;
}

.profile-image img {
    width: 100%;
    border-radius: 15px;
    object-fit: cover;
}

.profile-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.profile-header h3 {
    color: #1e293b;
    font-size: 1.5rem;
}

.match-score {
    background: #6366f1;
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-weight: 600;
}

.profile-subtitle {
    color: #64748b;
    margin-bottom: 15px;
}

.profile-tags {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.tag {
    background: #f1f5f9;
    color: #475569;
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 0.9rem;
}

.profile-description h4 {
    color: #1e293b;
    margin-bottom: 10px;
    margin-top: 20px;
}

.profile-description p {
    color: #64748b;
    margin-bottom: 15px;
}

.preferences-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 20px;
}

.preference-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.preference-icon {
    color: #10b981;
    font-weight: bold;
}

.interests-tags {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.interest-tag {
    background: #eef2ff;
    color: #6366f1;
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 0.9rem;
}

.connect-button {
    background: #6366f1;
    color: white;
    padding: 12px 30px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    margin-top: 20px;
}

.results-header {
    margin-bottom: 20px;
}

.results-header h3 {
    color: #1e293b;
}

.results-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.result-card {
    background: white;
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    display: grid;
    grid-template-columns: 80px 1fr;
    gap: 20px;
    align-items: center;
}

.result-image img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
}

.result-info h4 {
    margin-bottom: 5px;
    color: #1e293b;
}

.result-info p {
    color: #64748b;
    margin-bottom: 10px;
}

.match-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.match-bar span {
    font-weight: 600;
    color: #6366f1;
}

.match-progress {
    flex: 1;
    height: 8px;
    background: #e2e8f0;
    border-radius: 4px;
    overflow: hidden;
}

.match-fill {
    height: 100%;
    background: #6366f1;
    border-radius: 4px;
}

.result-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 30px;
}

.page-btn {
    padding: 10px 15px;
    border: 2px solid #e2e8f0;
    background: white;
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.3s;
}

.page-btn:hover,
.page-btn.active {
    background: #6366f1;
    color: white;
    border-color: #6366f1;
}

/* Match Page Styles */
.match-section {
    margin-top: 70px;
    padding: 60px 0;
    min-height: 100vh;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.match-card {
    background: white;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    max-width: 800px;
    margin: 0 auto;
}

.match-header {
    text-align: center;
    margin-bottom: 40px;
}

.match-header h2 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    color: #1e293b;
}

.match-header p {
    color: #64748b;
    font-size: 1.1rem;
}

.match-profiles {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 30px;
    align-items: center;
    margin-bottom: 40px;
}

.profile-card {
    background: #f8fafc;
    padding: 30px;
    border-radius: 15px;
    text-align: center;
}

.profile-card .profile-image img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 15px;
}

.profile-card h3 {
    margin-bottom: 5px;
    color: #1e293b;
}

.you-label {
    background: #6366f1;
    color: white;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 0.8rem;
    margin-bottom: 10px;
    display: inline-block;
}

.university {
    color: #64748b;
    margin-bottom: 20px;
}

.key-preferences h4 {
    margin-bottom: 15px;
    color: #1e293b;
}

.key-preferences ul {
    list-style: none;
    text-align: left;
}

.key-preferences li {
    margin-bottom: 5px;
    color: #10b981;
}

.connection-symbol {
    font-size: 2rem;
    color: #6366f1;
    font-weight: bold;
}

.shared-interests {
    text-align: center;
    margin-bottom: 40px;
}

.shared-interests h3 {
    margin-bottom: 20px;
    color: #1e293b;
}

.interests-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.match-actions {
    display: flex;
    gap: 20px;
    justify-content: center;
}

.chat-button {
    background: #6366f1;
    color: white;
    padding: 15px 30px;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.chat-button:hover {
    background: #4f46e5;
    transform: translateY(-2px);
}

.save-button {
    background: transparent;
    color: #6366f1;
    padding: 15px 30px;
    border: 2px solid #6366f1;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.save-button:hover {
    background: #6366f1;
    color: white;
}

/* Footer */
.footer {
    background: #1e293b;
    color: white;
    padding: 40px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 30px;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1.25rem;
    font-weight: 700;
}

.footer-newsletter h4 {
    margin-bottom: 15px;
}

.newsletter-form {
    display: flex;
    gap: 10px;
}

.newsletter-form input {
    flex: 1;
    padding: 12px;
    border: none;
    border-radius: 8px;
    background: #334155;
    color: white;
}

.newsletter-form button {
    background: #6366f1;
    color: white;
    padding: 12px 20px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #334155;
    color: #94a3b8;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .step {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .step:nth-child(even) {
        grid-template-columns: 1fr;
    }
    
    .step:nth-child(even) .step-content {
        text-align: center;
    }
    
    .search-layout {
        grid-template-columns: 1fr;
    }
    
    .filters-sidebar {
        order: 2;
    }
    
    .featured-profile {
        grid-template-columns: 1fr;
    }
    
    .match-profiles {
        grid-template-columns: 1fr;
    }
    
    .connection-symbol {
        transform: rotate(90deg);
    }
    
    .match-actions {
        flex-direction: column;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .nav-menu {
        display: none;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
    
    .preference-options {
        grid-template-columns: 1fr;
    }
    
    .interests-grid {
        justify-content: flex-start;
    }
}