/* Cytognosis Website - Main Stylesheet */

/* Base Styles */
:root {
    --primary-dark: #2D2A4A;
    --primary-blue: #4361EE;
    --primary-purple: #9D84B7;
    --light-gray: #F5F5F5;
    --medium-gray: #E0E0E0;
    --dark-gray: #333333;
    --white: #FFFFFF;
    --black: #000000;
    --gradient-bg: linear-gradient(135deg, var(--primary-blue), var(--primary-purple));
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
    line-height: 1.7;
    color: var(--text-color);
    background-color: var(--white);
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
    font-weight: 700;
    line-height: 1.2;
    color: var(--primary-dark);
}

h1 {
    font-size: 2.5rem;
    line-height: 1.2;
}

h2 {
    font-size: 2rem;
    margin-bottom: 2rem;
    position: relative;
    display: inline-block;
}

h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 3px;
    background: var(--gradient-bg);
}

h3 {
    font-size: 1.5rem;
}

p {
    margin-bottom: 1rem;
}

a {
    color: var(--primary-blue);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--primary-purple);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

section {
    padding: 5rem 0;
}

.btn {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    border-radius: 30px;
    font-weight: 500;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    font-family: 'Inter', sans-serif;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
}

.btn-primary {
    background: var(--gradient-bg);
    color: var(--white);
    border: 2px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.btn-primary:hover {
    box-shadow: 0 5px 15px rgba(67, 97, 238, 0.4);
    transform: translateY(-2px);
    color: var(--white);
    border-color: var(--white);
}

.btn-secondary {
    background: transparent;
    color: var(--white);
    border: 2px solid var(--white);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    color: var(--white);
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    color: var(--primary-blue);
    border: 2px solid var(--primary-blue);
}

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

.hidden {
    display: none;
}

/* Header */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: transparent;
    transition: var(--transition);
    padding: 1rem 0;
}

header.scrolled {
    background-color: var(--primary-dark);
    box-shadow: var(--shadow);
    padding: 0.5rem 0;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 40px;
    transition: var(--transition);
    filter: drop-shadow(0 0 5px rgba(0, 0, 0, 0.5));
}

header.scrolled .logo img {
    height: 35px;
    filter: none;
}

nav ul {
    display: flex;
    align-items: center;
}

nav ul li {
    margin-left: 1.5rem;
    display: flex;
    align-items: center;
}

nav ul li a {
    color: var(--white);
    font-weight: 500;
    position: relative;
    padding: 0.5rem 0;
    display: inline-block;
}

nav ul li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-purple);
    transition: var(--transition);
}

nav ul li a:hover::after,
nav ul li a.active::after {
    width: 100%;
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    cursor: pointer;
}

.mobile-menu-btn span {
    display: block;
    height: 3px;
    width: 100%;
    background-color: var(--white);
    transition: var(--transition);
}

/* Login Button */
.login-item {
    margin-left: 2rem;
}

.login-button {
    background-color: var(--white);
    color: var(--primary-dark) !important;
    padding: 0.5rem 1.2rem !important;
    border-radius: 20px;
    font-weight: 600;
    transition: var(--transition);
}

.login-button:hover {
    background-color: var(--light-gray);
    transform: translateY(-2px);
}

.login-button::after {
    display: none;
}

/* Logged-in header button with avatar + name */
.login-button.user-logged-in {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0.4rem 0.9rem !important;
    border-radius: 20px;
    white-space: nowrap;
}

.login-button.user-logged-in .avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: inline-block;
}

.login-button.user-logged-in .user-name {
    color: var(--primary-dark);
    font-weight: 600;
    line-height: 24px;
}

/* Login Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.6);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal.show {
    display: block;
    opacity: 1;
}

.modal-content {
    background-color: var(--white);
    margin: 10% auto;
    padding: 2rem;
    border-radius: 8px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    position: relative;
    transform: translateY(-50px);
    opacity: 0;
    transition: all 0.3s ease;
}

.modal.show .modal-content {
    transform: translateY(0);
    opacity: 1;
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 28px;
    font-weight: bold;
    color: var(--dark-gray);
    cursor: pointer;
}

.close-modal:hover {
    color: var(--primary-blue);
}

.modal h2 {
    margin-bottom: 1rem;
    color: var(--primary-dark);
}

.modal p {
    margin-bottom: 1.5rem;
}

.login-info {
    margin-top: 2rem;
    padding: 1rem;
    background-color: var(--light-gray);
    border-radius: 5px;
}

.login-info p {
    margin-bottom: 0;
    font-size: 0.9rem;
    color: var(--dark-gray);
}

.login-info i {
    color: var(--primary-blue);
    margin-right: 5px;
}

/* Hero Section */
.hero {
    height: 100vh;
    min-height: 600px;
    background: var(--primary-dark);
    color: var(--white);
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(67, 97, 238, 0.8), rgba(157, 132, 183, 0.8));
    z-index: 1;
}

.hero .container {
    position: relative;
    z-index: 2;
}

.hero-content {
    max-width: 800px;
}

.hero h1 {
    color: var(--white);
    margin-bottom: 1.5rem;
    font-size: 3rem;
}

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

.cta-buttons {
    display: flex;
    gap: 1rem;
}

/* Special styling for hero buttons to make them stand out */
.hero .btn-primary {
    border: 2px solid var(--white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.hero .btn-primary:hover {
    box-shadow: 0 5px 15px rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

/* About Section */
.about {
    background-color: var(--white);
}

.about-content {
    max-width: 900px;
    margin: 0 auto;
}

.about-content > p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    text-align: center;
}

.mission-vision {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.mission, .vision {
    padding: 2rem;
    border-radius: 8px;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.mission:hover, .vision:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.mission h3, .vision h3 {
    color: var(--primary-blue);
}

/* Approach Section */
.approach {
    background-color: var(--light-gray);
}

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

.phase {
    background-color: var(--white);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    text-align: center;
}

.phase:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.phase-icon {
    width: 80px;
    height: 80px;
    background: var(--gradient-bg);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.phase-icon i {
    font-size: 2rem;
    color: var(--white);
}

.phase h3 {
    margin-bottom: 1rem;
}

/* Technology Section */
.technology {
    background-color: var(--white);
}

.tech-solutions {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    max-width: 900px;
    margin: 0 auto;
}

.tech-solution {
    padding: 2rem;
    border-radius: 8px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border-top: 4px solid var(--primary-blue);
}

.tech-logo {
    float: left;
    margin-right: 2rem;
    margin-bottom: 1rem;
}

.tech-logo img {
    height: 80px;
    width: auto;
    object-fit: contain;
}

.tech-solution:nth-child(2) {
    border-top-color: var(--primary-purple);
}

.tech-solution:nth-child(3) {
    border-top-color: var(--primary-dark);
}

.tech-solution:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.tech-solution h3 {
    color: var(--primary-blue);
    margin-bottom: 1rem;
    line-height: 80px;
    font-size: 2rem;
    font-weight: 700;
}

.tech-solution p {
    clear: both;
    text-align: left;
    margin-left: 0;
    padding-left: 0;
}

.tech-features {
    list-style: disc;
    margin-top: 1rem;
    margin-left: 2rem;
    clear: both;
    text-align: left;
}

.tech-features li {
    padding: 0.5rem 0;
}

.tech-features i {
    display: none;
}

/* Impact Section */
.impact {
    background-color: var(--light-gray);
}

.impact-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.stat {
    background-color: var(--white);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: var(--shadow);
    text-align: center;
    transition: var(--transition);
}

.stat:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.stat h3 {
    color: var(--primary-blue);
}

.stat-value {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-dark);
    margin: 1rem 0;
    font-family: 'Montserrat', sans-serif;
}

.stat-desc {
    font-size: 0.9rem;
    opacity: 0.8;
}

.impact-stories {
    background-color: var(--white);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.impact-stories h3 {
    color: var(--primary-blue);
    margin-bottom: 1.5rem;
}

/* Support Section */
.support {
    background-color: var(--white);
}

.support-content > p {
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto 3rem;
    text-align: center;
}

.support-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.support-option {
    padding: 2rem;
    border-radius: 8px;
    box-shadow: var(--shadow);
    text-align: center;
    transition: var(--transition);
}

.support-option:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.support-option h3 {
    color: var(--primary-blue);
    margin-bottom: 1rem;
}

.support-option p {
    margin-bottom: 1.5rem;
}

/* Contact Section */
.contact {
    background-color: var(--light-gray);
}

.contact-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
}

.contact-info h3 {
    color: var(--primary-blue);
    margin-bottom: 1.5rem;
}

.contact-details {
    margin-top: 2rem;
}

.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.contact-item i {
    font-size: 1.2rem;
    color: var(--primary-blue);
    margin-right: 1rem;
    width: 20px;
    text-align: center;
}

.social-links {
    margin-top: 2rem;
    display: flex;
    gap: 1rem;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--gradient-bg);
    color: var(--white);
    border-radius: 50%;
    transition: var(--transition);
}

.social-links a:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
}

.contact-form h3 {
    color: var(--primary-blue);
    margin-bottom: 1.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid var(--medium-gray);
    border-radius: 4px;
    font-family: 'Roboto', sans-serif;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 2px rgba(67, 97, 238, 0.2);
}

.form-group input.error,
.form-group textarea.error {
    border-color: #ff3860;
}

.success-message {
    text-align: center;
    padding: 2rem;
}

.success-message h3 {
    color: #28a745;
    margin-bottom: 1rem;
}

/* Footer */
footer {
    background-color: var(--primary-dark);
    color: var(--white);
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-logo img {
    height: 50px;
    margin-bottom: 1rem;
}

.footer-links ul {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 0.5rem;
}

.footer-links ul li a {
    color: var(--white);
    opacity: 0.8;
    font-size: 0.9rem;
}

.footer-links ul li a:hover {
    opacity: 1;
}

.footer-social {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
}

.footer-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
    border-radius: 50%;
    transition: var(--transition);
}

.footer-social a:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-3px);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1.5rem;
    text-align: center;
}

.footer-bottom p {
    font-size: 0.9rem;
    opacity: 0.7;
}

/* Responsive Styles */
@media (max-width: 992px) {
    h1 {
        font-size: 2.2rem;
    }
    
    h2 {
        font-size: 1.8rem;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero p {
        font-size: 1.1rem;
    }
}

@media (max-width: 768px) {
    header .container {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .logo {
        margin-bottom: 1rem;
    }
    
    nav {
        width: 100%;
    }
    
    nav ul {
        flex-direction: column;
        align-items: flex-start;
        display: none;
    }
    
    nav ul.active {
        display: flex;
    }
    
    nav ul li {
        margin: 0.5rem 0;
        width: 100%;
    }
    
    .mobile-menu-btn {
        display: flex;
        position: absolute;
        top: 1.5rem;
        right: 1.5rem;
    }
    
    .hero {
        height: auto;
        padding: 8rem 0 5rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        gap: 1rem;
    }
    
    .cta-buttons .btn {
        width: 100%;
    }
    
    .mission-vision,
    .phases,
    .tech-solutions,
    .impact-stats,
    .support-options,
    .contact-content {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-links ul {
        justify-content: center;
    }
    
    .footer-social {
        justify-content: center;
    }
    
    .login-item {
        margin-left: 0;
        margin-top: 1rem;
    }
    
    .login-button {
        display: block;
        text-align: center;
    }
}

@media (max-width: 480px) {
    section {
        padding: 3rem 0;
    }
    
    h1 {
        font-size: 1.8rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .stat-value {
        font-size: 2rem;
    }
    
    .modal-content {
        padding: 1.5rem;
        margin: 20% auto;
    }
}

/* Animation Classes */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-on-scroll.animated {
    opacity: 1;
    transform: translateY(0);
}

/* Team Section */
.team {
    background: var(--light-gray);
    display: none;
}

.team-content {
    text-align: center;
}

.team-content > p {
    font-size: 1.1rem;
    margin-bottom: 3rem;
    color: var(--dark-gray);
}

.team-members {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.team-member {
    background: var(--white);
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.team-member:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* Removed decorative gradient line to avoid double borders with column titles */
.team-member::before {
    display: none;
}

.member-photo {
    width: 120px;
    height: 120px;
    margin: 0 auto 1.5rem;
    position: relative;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid var(--primary-blue);
}

.member-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

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

.photo-placeholder {
    width: 100%;
    height: 100%;
    background: var(--gradient-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 2.5rem;
}

.member-info h3 {
    color: var(--primary-dark);
    margin-bottom: 0.5rem;
    font-size: 1.3rem;
}

.member-title {
    color: var(--primary-blue);
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.member-roles {
    color: var(--primary-purple);
    font-weight: 500;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    font-style: italic;
    opacity: 0.9;
}

.member-bio {
    color: var(--dark-gray);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 0;
}

.team-note {
    background: rgba(67, 97, 238, 0.1);
    border: 1px solid rgba(67, 97, 238, 0.2);
    border-radius: 10px;
    padding: 1rem 1.5rem;
    text-align: center;
    margin-top: 2rem;
}

.team-note p {
    margin: 0;
    color: var(--primary-blue);
    font-size: 0.95rem;
}

.team-note i {
    margin-right: 0.5rem;
}

.team-note a {
    color: var(--primary-blue);
    font-weight: 600;
    text-decoration: underline;
}

.team-note a:hover {
    color: var(--primary-purple);
}

/* Success message styles for contact form */
.success-message {
    background: linear-gradient(135deg, #4CAF50, #45a049);
    color: white;
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    box-shadow: var(--shadow);
}

.success-message h3 {
    color: white;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.success-message p {
    margin-bottom: 0.5rem;
    opacity: 0.95;
}

.success-message a {
    color: white;
    text-decoration: underline;
    font-weight: 600;
}

.success-message a:hover {
    opacity: 0.8;
}

/* Form error styles */
.form-group input.error,
.form-group textarea.error {
    border-color: #e74c3c;
    box-shadow: 0 0 0 2px rgba(231, 76, 60, 0.1);
}

/* Button loading state */
button[disabled] {
    opacity: 0.7;
    cursor: not-allowed;
}

/* Responsive styles for team section */
@media (max-width: 768px) {
    .team-members {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .team-member {
        padding: 1.5rem;
    }
    
    .member-photo {
        width: 100px;
        height: 100px;
        margin-bottom: 1rem;
    }
    
    .member-info h3 {
        font-size: 1.2rem;
    }
    
    .member-title {
        font-size: 0.9rem;
    }
    
    .member-roles {
        font-size: 0.85rem;
    }
    
    .member-bio {
        font-size: 0.9rem;
    }
}