/* Extended Styles for Consistent Design Across Pages */

/* General Enhancements */
:root {
    --gradient-accent: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
    --shadow-hover: 0 10px 20px rgba(0, 0, 0, 0.15);
    --border-radius-lg: 15px;
}

/* Portfolio Page */
.portfolio-page {
    background: var(--light-color);
}

.project-details {
    background: var(--white);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-hover);
    padding: 40px;
    margin-bottom: 60px;
}

.project-header h1 {
    font-size: 40px;
    color: var(--dark-color);
    margin-bottom: 10px;
}

.project-meta {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
    color: var(--text-light);
}

.project-meta .category,
.project-meta .date {
    font-size: 16px;
    padding: 8px 16px;
    background: var(--primary-color);
    color: var(--white);
    border-radius: 20px;
}

.project-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.project-image img {
    width: 100%;
    border-radius: var(--border-radius-lg);
    transition: var(--transition);
    box-shadow: var(--shadow-hover);
}

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

.project-info h2 {
    font-size: 28px;
    color: var(--dark-color);
    margin-bottom: 20px;
}

.project-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.detail-item h3 {
    font-size: 20px;
    color: var(--dark-color);
    margin-bottom: 10px;
}

.detail-item p {
    color: var(--text-light);
}

.portfolio-filters {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 40px;
}

.filter-btn {
    padding: 10px 20px;
    border: 2px solid var(--primary-color);
    background: transparent;
    color: var(--primary-color);
    border-radius: 25px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--gradient-accent);
    color: var(--white);
    border-color: transparent;
}

/* Team Page */
.team-page {
    background: var(--white);
}

.team-grid {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px; /* Adds spacing between cards */
}

.team-member {
    position: relative;
    overflow: hidden;
    width: 300px; /* Standard width for team member cards */
    min-height: 400px; /* Standard minimum height for team member cards */
    display: flex;
    flex-direction: column;
    border: 2px solid var(--primary-color); /* Thicker, styled border for visual appeal */
}

.team-member .member-image {
    width: 100%;
    height: 250px; /* Fixed height for image section to ensure uniformity */
    overflow: hidden;
    background: var(--gray-light); /* Fills blank space around images */
}

.team-member .member-image img {
    width: 100%;
    height: 100%;
    object-fit: contain; /* Ensures images are fully viewable without cropping */
}

.team-member .member-info {
    flex: 1; /* Allows info section to take remaining space */
    padding: 15px;
}

.team-member:hover .member-info {
    background: var(--gradient-accent);
    color: var(--white);
}

.team-member:hover .member-info h3,
.team-member:hover .member-info p {
    color: var(--white);
}

.join-team {
    background: var(--primary-color);
    color: var(--white);
    text-align: center;
    padding: 60px 0;
}

.join-content h2 {
    font-size: 32px;
    margin-bottom: 20px;
}

.join-content p {
    max-width: 600px;
    margin: 0 auto 30px;
    opacity: 0.9;
}

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

.alert {
    padding: 20px;
    border-radius: var(--border-radius-lg);
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.alert-success {
    background: #e6ffed;
    color: #28a745;
}

.alert-error {
    background: #ffe6e6;
    color: #dc3545;
}

.alert i {
    font-size: 24px;
}

.contact-info h3 {
    font-size: 28px;
    margin-bottom: 20px;
}

.contact-form {
    background: var(--gradient-accent);
    color: var(--white);
}

.contact-form input,
.contact-form textarea {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: var(--white);
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.contact-form input:focus,
.contact-form textarea:focus {
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
}

.map-section {
    padding: 40px 0;
}

.map-container {
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-hover);
}

/* Services Page */
.services-page {
    background: var(--white);
}

.service-card {
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--gradient-accent);
    opacity: 0.1;
    transition: var(--transition);
}

.service-card:hover::before {
    left: 0;
}

.service-features {
    list-style: none;
    margin: 20px 0;
}

.service-features li {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    color: var(--text-light);
}

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

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

.service-process {
    background: var(--light-color);
}

.process-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.process-step {
    text-align: center;
    padding: 20px;
    background: var(--white);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-hover);
    transition: var(--transition);
}

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

.step-number {
    width: 50px;
    height: 50px;
    background: var(--gradient-accent);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 20px;
    font-weight: 700;
}

/* About Page */
.about-section {
    background: var(--light-color);
}

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

.value-item {
    text-align: center;
    padding: 20px;
    background: var(--white);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-hover);
    transition: var(--transition);
}

.value-item:hover {
    transform: translateY(-5px);
    background: var(--gradient-accent);
    color: var(--white);
}

.value-item i {
    font-size: 30px;
    margin-bottom: 15px;
    color: var(--accent-color);
}

.value-item:hover i {
    color: var(--white);
}

.milestones {
    background: var(--primary-color);
    color: var(--white);
    padding: 60px 0;
}

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

.milestone-item {
    text-align: center;
}

.milestone-item i {
    font-size: 40px;
    margin-bottom: 15px;
    opacity: 0.8;
}

.milestone-item h3 {
    font-size: 36px;
    margin-bottom: 10px;
}

.counter {
    display: inline-block;
    font-weight: 700;
}

/* Responsive Adjustments */
@media (max-width: 992px) {
    .project-content {
        grid-template-columns: 1fr;
    }
    
    .portfolio-filters {
        flex-wrap: wrap;
        gap: 10px;
    }
}

@media (max-width: 768px) {
    .project-header h1 {
        font-size: 32px;
    }
    
    .project-details {
        padding: 20px;
    }
    
    .process-steps {
        grid-template-columns: 1fr;
    }
    
    .values-list {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    .project-header h1 {
        font-size: 28px;
    }
    
    .project-meta {
        flex-direction: column;
        gap: 10px;
    }
    
    .milestone-item h3 {
        font-size: 28px;
    }
}