body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

* {
    font-family: Helvetica, Arial, sans-serif;
}

.main-container {
    margin-top: 90px;
    flex: 1;
    display: block;
    border: none;
    min-height: 90vh;
    min-width: 90vh;
    box-shadow: 0 2px 60px rgba(0, 0, 0, 0.25);
}

.hero {
      background: linear-gradient(var(--hero-overlay), var(--hero-overlay)), 
                url('../images/others/About-Us-bg.jpg') no-repeat center center;
    background-size: cover;
    background-position: center;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
}

.hero-content h1 {
    font-size: 56px;
    margin-bottom: 15px;
}

.hero-content p {
    font-size: 20px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.our-story {
    max-width: 1200px;
    margin: 80px auto;
    padding: 0 50px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.story-image {
    width: 100%;
    height: 400px;
    background: linear-gradient(135deg, #ff6f00 0%, #d84315 100%);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 80px;
    color: white;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.story-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.story-content h2 {
    font-size: 36px;
    color: #1a1a1a;
    margin-bottom: 20px;
}

.story-content p {
    font-size: 16px;
    line-height: 1.8;
    color: #555;
    margin-bottom: 15px;
}

.stats {
    background: linear-gradient(135deg, #c56548 0%, #ff3c00 100%);
    padding: 60px 50px;
    color: white;
}

.stats-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    text-align: center;
}

.stat-item h3 {
    font-size: 48px;
    margin-bottom: 10px;
    font-weight: 700;
}

.stat-item p {
    font-size: 16px;
    opacity: 0.95;
}

.values {
    max-width: 1200px;
    margin: 80px auto;
    padding: 0 50px;
}

.values h2 {
    font-size: 36px;
    text-align: center;
    margin-bottom: 50px;
    color: #1a1a1a;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.value-card {
    background: white;
    padding: 40px 30px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.3s;
}

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

.value-icon {
    font-size: 50px;
    margin-bottom: 20px;
}

.value-card h3 {
    font-size: 22px;
    margin-bottom: 15px;
    color: #4d4d4d;
}

.value-card p {
    font-size: 15px;
    line-height: 1.6;
    color: #666;
}

.awards {
    background-color: #fff8e1;
    padding: 80px 50px;
}

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

.awards h2 {
    font-size: 36px;
    text-align: center;
    margin-bottom: 50px;
    color: #1a1a1a;
}

.awards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.award-card {
    background: white;
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

.trophy-icon {
    font-size: 60px;
    margin-bottom: 15px;
}

.award-card h3 {
    font-size: 18px;
    color: #4d4d4d;
    margin-bottom: 10px;
}

.award-card p {
    font-size: 14px;
    color: #666;
}

.team {
    max-width: 1200px;
    margin: 80px auto;
    padding: 0 50px;
}

.team h2 {
    font-size: 36px;
    text-align: center;
    margin-bottom: 20px;
    color: #1a1a1a;
}

.team-subtitle {
    text-align: center;
    font-size: 16px;
    color: #666;
    margin-bottom: 50px;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.team-member {
    text-align: center;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.team-member:hover {
    transform: translateY(-5px);
}

.member-photo {
    position: relative;
    width: 150px;
    height: 150px;
    margin: 0 auto 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: visible; /* Changed from default */
    cursor: pointer;
}

/* Animated rotating border */
.member-photo::before {
    content: '';
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    border-radius: 50%;
    background: conic-gradient(
        from 0deg,
        #C75B2C 0deg,
        #C75B2C 30deg,
       #C75B2C 90deg,
        transparent 360deg
    );
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 0;
}

.member-photo:hover::before {
    opacity: 1;
    animation: rotateBorder 1.5s linear infinite;
}

/* White background circle to create outline effect */
.member-photo::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: white;
    border-radius: 50%;
    z-index: 0;
}

.member-photo img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    position: relative;
    z-index: 1;
}

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

/* Remove old gradient background since we're using images */
.member-photo {
    background: none !important;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.team-member h3 {
    font-size: 18px;
    margin-bottom: 5px;
    color: #1a1a1a;
}

.team-member p {
    font-size: 14px;
    color: #d84315;
}

.location {
    background-color: white;
    padding: 80px 50px;
}

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

.location-content h2 {
    font-size: 36px;
    margin-bottom: 20px;
    color: #1a1a1a;
}

.location-details {
    margin-top: 30px;
}

.location-item {
    display: flex;
    align-items: start;
    gap: 15px;
    margin-bottom: 20px;
}

.location-item-icon {
    font-size: 24px;
    color: #d84315;
}

.location-item-text h4 {
    margin-top: 0;
    font-size: 16px;
    margin-bottom: 5px;
    color: #1a1a1a;
}

.location-item-text p {
    font-size: 14px;
    color: #666;
}

.location-map {
    width: 100%;
    height: 400px;
    background: linear-gradient(135deg, #ffccbc 0%, #ffab91 100%);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 60px;
    color: #d84315;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

@media (max-width: 768px) {
    .our-story,
    .location-container {
        grid-template-columns: 1fr;
    }
    .stats-container,
    .values-grid,
    .awards-grid,
    .team-grid {
        grid-template-columns: 1fr;
    }
    .hero-content h1 {
        font-size: 36px;
    }
}

.member-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 999;
}

.member-modal.active {
    display: flex;
}

.modal-content {
    background: white;
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    width: 300px;
    position: relative;
    animation: popIn 0.3s ease;
}

@keyframes popIn {
    from {
        transform: scale(0.8);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

:root {
    --footer-bg-light: #fff;
    --footer-text-light: #333;
    --footer-border-light: #ff6f00;
    --footer-link-light: #d84315;
    --footer-link-hover: #ff6f00;
    --footer-bg-dark: #1a1a1a;
    --footer-text-dark: #eee;
    --footer-border-dark: #ff6f00;
    --footer-link-dark: #ffa270;
}

body.light-mode {
    --footer-bg: var(--footer-bg-light);
    --footer-text: var(--footer-text-light);
    --footer-border: var(--footer-border-light);
    --footer-link: var(--footer-link-light);
    --footer-link-hover: var(--footer-link-hover);
}

body.dark-mode {
    --footer-bg: var(--footer-bg-dark);
    --footer-text: var(--footer-text-dark);
    --footer-border: var(--footer-border-dark);
    --footer-link: var(--footer-link-dark);
    --footer-link-hover: var(--footer-link-hover);
}

/* Footer */
.footer {
    background: var(--footer-bg);
    color: var(--footer-text);
    padding: 40px 6% 20px;
    font-family: 'Poppins', sans-serif;
    font-size: 13px;
    border-top: 2px solid var(--footer-border);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 25px;
}

.footer h2 {
    color: var(--footer-border);
    font-size: 22px;
    font-weight: 600;
}

.footer h4 {
    margin-bottom: 12px;
    font-size: 14px;
    font-weight: 500;
}

.footer p {
    color: var(--footer-text);
    line-height: 1.5;
    margin-bottom: 8px;
}

.footer-links {
    display: flex;
    flex-direction: column;
}

.footer-links a {
    display: inline-block;
    color: var(--footer-link);
    text-decoration: none;
    margin-bottom: 6px;
    position: relative;
    transition: color 0.3s;
}

.footer-links a span {
    position: relative;
}

.footer-links a span::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 0;
    height: 3px;
    background: var(--footer-link-hover);
    box-shadow: 0 0 6px rgba(255, 140, 0, 0.6);
    transition: width 0.4s ease;
}

.footer-links a:hover span::after {
    width: 100%;
}

.social-icons {
    display: flex;
    gap: 12px;
    margin-top: 8px;
}

.social-icons img {
    width: 20px;
    height: 20px;
    transition: transform 0.3s;
}

.social-icons a:hover img {
    transform: scale(1.2);
}

.footer-bottom {
    margin-top: 30px;
    padding-top: 15px;
    border-top: 1px solid rgba(0,0,0,0.1);
    text-align: center;
    font-size: 12px;
    color: var(--footer-text);
}
.footer-links a {
  position: relative;
  width: fit-content;
  text-decoration: none;
  color: var(--footer-link);
}

.footer-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -3px;
  width: 0;
  height: 3px;
  background: #ff6f00;
  box-shadow: 0 0 6px rgba(255, 140, 0, 0.6);
  transition: width 0.4s ease;
}

.footer-links a:hover::after {
  width: 100%;
}
.team-dialog {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.team-dialog.active {
    display: flex;
}

.dialog-card {
    background: var(--bg-secondary);
    border-radius: 25px;
    max-width: 900px;
    width: 100%;
    max-height: 90vh;
    position: relative;
    box-shadow: var(--shadow-xl);
    animation: slideUp 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    border: 1px solid var(--border-color);
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(50px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Header Section */
.dialog-header {
    display: flex;
    align-items: center;
    gap: 40px;
    padding: 50px;
    background: var(--bg-primary);
    position: relative;
    overflow: hidden;
}

.dialog-header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    border-radius: 50%;
}

.dialog-photo {
    width: 200px;
    height: 200px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
    flex-shrink: 0;
    border: 4px solid rgba(255, 255, 255, 0.2);
    position: relative;
    z-index: 1;
}

.dialog-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.dialog-info {
    flex: 1;
    color: white;
    position: relative;
    z-index: 1;
}

.dialog-info h2 {
    font-size: 42px;
    margin: 0 0 10px 0;
    font-weight: 700;
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.dialog-info > p {
    font-size: 18px;
    margin: 0 0 20px 0;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.95);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.dialog-socials {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.dialog-socials span {
    display: inline-block;
    padding: 8px 20px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    color: white;
    backdrop-filter: blur(10px);
}

/* Body Section */
.dialog-body {
    padding: 50px;
    background: var(--bg-primary);
    overflow-y: auto;
    max-height: calc(90vh - 320px);
}

.dialog-body::-webkit-scrollbar {
    width: 8px;
}

.dialog-body::-webkit-scrollbar-track {
    background: var(--border-color);
}

.dialog-body::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 10px;
}

.dialog-body::-webkit-scrollbar-thumb:hover {
    background: var(--primary-hover);
}

.dialog-section {
    margin-bottom: 35px;
}

.dialog-section:last-child {
    margin-bottom: 0;
}

.dialog-body h3 {
    font-size: 24px;
    margin: 0 0 15px 0;
    font-weight: 700;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 10px;
}

.dialog-body h3::before {
    content: '';
    width: 4px;
    height: 24px;
    background: var(--gradient-primary);
    border-radius: 2px;
}

.dialog-body p {
    font-size: 16px;
    line-height: 1.8;
    color: var(--text-secondary);
    margin: 0;
}

/* Close Button */
.dialog-close {
    position: absolute;
    top: 25px;
    right: 25px;
    background: var(--bg-secondary);
    color: var(--primary);
    border: 2px solid var(--border-color);
    backdrop-filter: blur(10px);
    width: 45px;
    height: 45px;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 10;
}

.dialog-close:hover {
    background: white;
    color: var(--primary);
    transform: rotate(90deg) scale(1.1);
    border-color: white;
}



/* Responsive Design */
@media (max-width: 768px) {
    .dialog-header {
        flex-direction: column;
        text-align: center;
        padding: 40px 30px;
    }
    
    .dialog-photo {
        width: 150px;
        height: 150px;
    }
    
    .dialog-info h2 {
        font-size: 32px;
    }
    
    .dialog-body {
        padding: 30px;
    }
}


.team-grid-devs {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

/* Large Mobile and Below (767px and below) - 1 column */
@media (max-width: 767px) {
    .team-grid-devs {
        grid-template-columns: 1fr;
        gap: 15px;
    }
}

/* Mobile Portrait (639px and below) */
@media (max-width: 639px) {
    .team-grid-devs {
        grid-template-columns: 1fr;
        gap: 12px;
    }
}

/* Small Mobile (479px and below) */
@media (max-width: 479px) {
    .team-grid-devs {
        grid-template-columns: 1fr;
        gap: 10px;
    }
}