/* HyRoot Portfolio - Public Site Styles */

:root {
    --bg-primary: #0A0A0A;
    --bg-surface: #141414;
    --bg-elevated: #1F1F1F;
    --border: #2A2A2A;
    --text-primary: #FFFFFF;
    --text-secondary: #A0A0A0;
    --text-muted: #6B6B6B;
    --accent: #F59E0B;
    --accent-hover: #FBBF24;
    --accent-glow: rgba(245, 158, 11, 0.2);
    --transition: all 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

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

a:hover {
    color: var(--accent-hover);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
}

.section-title {
    font-size: 48px;
    margin-bottom: 16px;
    background: linear-gradient(135deg, #FFFFFF 0%, #A0A0A0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-subtitle {
    color: var(--text-secondary);
    font-size: 18px;
    max-width: 600px;
}

/* Container */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 20px 0;
    transition: var(--transition);
}

.navbar.scrolled {
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
}

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

.nav-logo {
    font-size: 24px;
    font-weight: 700;
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-hover) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-links {
    display: flex;
    gap: 32px;
    list-style: none;
}

.nav-links a {
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: var(--transition);
}

.nav-links a:hover {
    color: var(--text-primary);
}

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

/* Mobile Menu */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 24px;
    cursor: pointer;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 80%, rgba(245, 158, 11, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(245, 158, 11, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

.hero-content {
    text-align: center;
    max-width: 900px;
    padding: 0 24px;
    position: relative;
    z-index: 1;
}

.hero-badge {
    display: inline-block;
    padding: 8px 16px;
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: 50px;
    font-size: 14px;
    color: var(--accent);
    margin-bottom: 24px;
}

.hero h1 {
    font-size: 72px;
    margin-bottom: 24px;
    line-height: 1.1;
}

.hero h1 span {
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-hover) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero p {
    font-size: 20px;
    color: var(--text-secondary);
    margin-bottom: 40px;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    border: none;
    cursor: pointer;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-hover) 100%);
    color: var(--bg-primary);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(245, 158, 11, 0.4);
}

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

.btn-secondary:hover {
    border-color: var(--accent);
    color: var(--accent);
}

/* Scroll indicator */
.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.scroll-indicator::after {
    content: '';
    width: 1px;
    height: 60px;
    background: linear-gradient(to bottom, var(--accent), transparent);
    animation: scrollPulse 2s infinite;
}

@keyframes scrollPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* Section Styles */
section {
    padding: 120px 0;
}

.section-header {
    margin-bottom: 64px;
}

/* About Section */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: start;
}

.about-story h3 {
    font-size: 24px;
    margin-bottom: 20px;
    color: var(--accent);
}

.about-story p {
    color: var(--text-secondary);
    margin-bottom: 16px;
    font-size: 16px;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.team-card {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 32px;
    text-align: center;
    transition: var(--transition);
}

.team-card:hover {
    transform: translateY(-8px);
    border-color: var(--accent);
}

.team-card img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 20px;
    border: 3px solid var(--accent);
}

.team-card .avatar-placeholder {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 48px;
    font-weight: 700;
    color: var(--bg-primary);
}

.team-card h4 {
    font-size: 20px;
    margin-bottom: 4px;
}

.team-card .role {
    color: var(--accent);
    font-size: 14px;
    margin-bottom: 12px;
}

.team-card .bio {
    color: var(--text-secondary);
    font-size: 14px;
    margin-bottom: 16px;
}

.team-card .specialties {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
}

.team-card .specialty-tag {
    padding: 4px 12px;
    background: var(--bg-elevated);
    border-radius: 50px;
    font-size: 12px;
    color: var(--text-secondary);
}

/* Projects Section */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 32px;
}

.project-card {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
    transition: var(--transition);
    cursor: pointer;
}

.project-card:hover {
    transform: translateY(-8px);
    border-color: var(--accent);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.project-card img {
    width: 100%;
    height: 240px;
    object-fit: cover;
    transition: var(--transition);
}

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

.project-content {
    padding: 24px;
}

.project-content .category {
    color: var(--accent);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.project-content h3 {
    font-size: 20px;
    margin-bottom: 8px;
}

.project-content p {
    color: var(--text-secondary);
    font-size: 14px;
    margin-bottom: 16px;
}

.project-content .meta {
    display: flex;
    justify-content: space-between;
    color: var(--text-muted);
    font-size: 13px;
}

/* Services Section */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}

.service-card {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 32px;
    transition: var(--transition);
}

.service-card:hover {
    border-color: var(--accent);
    transform: translateY(-4px);
}

.service-icon {
    width: 56px;
    height: 56px;
    background: var(--accent-glow);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.service-icon svg {
    width: 28px;
    height: 28px;
    color: var(--accent);
}

.service-card h3 {
    font-size: 20px;
    margin-bottom: 12px;
}

.service-card p {
    color: var(--text-secondary);
    font-size: 14px;
    margin-bottom: 16px;
}

.service-link {
    font-size: 14px;
    font-weight: 600;
}

/* Skills Section */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 32px;
}

.skill-category {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 32px;
}

.skill-category h3 {
    font-size: 18px;
    margin-bottom: 20px;
    color: var(--accent);
}

.skill-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.skill-tag {
    padding: 8px 16px;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 14px;
    color: var(--text-secondary);
    transition: var(--transition);
}

.skill-tag:hover {
    border-color: var(--accent);
    color: var(--accent);
}

/* Timeline Section */
.timeline {
    position: relative;
    max-width: 1400px;
    margin: 0 auto;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 100%;
    background: var(--border);
}

.timeline-item {
    display: flex;
    justify-content: flex-end;
    padding-right: 50%;
    position: relative;
    margin-bottom: 48px;
}

.timeline-item:nth-child(even) {
    justify-content: flex-start;
    padding-right: 0;
    padding-left: 50%;
}

.timeline-block {
    display: flex;
    align-items: stretch;
    max-width: 800px;
    position: relative;
}

.timeline-item:nth-child(odd) .timeline-block {
    flex-direction: row;
}

.timeline-item:nth-child(even) .timeline-block {
    flex-direction: row-reverse;
}

.timeline-image {
    flex: 1;
    overflow: hidden;
    background: var(--bg-surface);
    border: 1px solid var(--border);
    position: relative;
}

.timeline-item:nth-child(odd) .timeline-image {
    border-radius: 12px 0 0 12px;
    border-right: none;
}

.timeline-item:nth-child(even) .timeline-image {
    border-radius: 0 12px 12px 0;
    border-left: none;
}

.timeline-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    position: absolute;
    top: 0;
    left: 0;
}

.timeline-content {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 24px;
    flex: 1;
    position: relative;
}

/* Ensure equal sizing for image and content */
.timeline-block.has-image .timeline-image,
.timeline-block.has-image .timeline-content {
    flex: 1 1 50%;
}

/* Default: no image - all corners rounded */
.timeline-item:nth-child(odd) .timeline-content {
    border-radius: 12px;
}

.timeline-item:nth-child(even) .timeline-content {
    border-radius: 12px;
}

/* With image: adjust border radius */
.timeline-item:nth-child(odd) .timeline-block.has-image .timeline-content {
    border-radius: 0 12px 12px 0;
    border-left: none;
}

.timeline-item:nth-child(even) .timeline-block.has-image .timeline-content {
    border-radius: 12px 0 0 12px;
    border-right: none;
}

.timeline-content::after {
    content: '';
    position: absolute;
    top: 24px;
    width: 16px;
    height: 16px;
    background: var(--accent);
    border-radius: 50%;
    border: 4px solid var(--bg-primary);
}

.timeline-item:nth-child(odd) .timeline-content::after {
    right: -58px;
}

.timeline-item:nth-child(even) .timeline-content::after {
    left: -58px;
}

.timeline-date {
    color: var(--accent);
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
}

.timeline-content h4 {
    font-size: 18px;
    margin-bottom: 8px;
}

.timeline-content p {
    color: var(--text-secondary);
    font-size: 14px;
}

/* Contact Section */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
}

.contact-info h3 {
    font-size: 32px;
    margin-bottom: 24px;
}

.contact-info p {
    color: var(--text-secondary);
    margin-bottom: 32px;
}

.contact-links {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-link {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px;
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    transition: var(--transition);
}

.contact-link:hover {
    border-color: var(--accent);
    background: var(--accent-glow);
}

.contact-link svg {
    width: 24px;
    height: 24px;
    color: var(--accent);
}

.contact-link span {
    font-size: 18px;
    color: var(--text-primary);
}

/* Footer */
.footer {
    background: var(--bg-surface);
    border-top: 1px solid var(--border);
    padding: 60px 0 24px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 48px;
}

.footer-brand h3 {
    font-size: 24px;
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-hover) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 16px;
}

.footer-brand p {
    color: var(--text-secondary);
    font-size: 14px;
}

.footer-links h4 {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 16px;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 8px;
}

.footer-links a {
    color: var(--text-secondary);
    font-size: 14px;
}

.footer-links a:hover {
    color: var(--accent);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 24px;
    border-top: 1px solid var(--border);
}

.footer-bottom p {
    color: var(--text-muted);
    font-size: 14px;
}

.social-links {
    display: flex;
    gap: 16px;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.social-links a:hover {
    border-color: var(--accent);
    background: var(--accent-glow);
}

.social-links svg {
    width: 18px;
    height: 18px;
}

/* Page Header */
.page-header {
    padding: 160px 0 80px;
    text-align: center;
}

.page-header h1 {
    font-size: 56px;
    margin-bottom: 16px;
}

/* Filter Buttons */
.filter-buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 48px;
    justify-content: center;
}

.filter-btn {
    padding: 10px 20px;
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: 50px;
    color: var(--text-secondary);
    font-size: 14px;
    cursor: pointer;
    transition: var(--transition);
}

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

/* FAQ Accordion */
.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    margin-bottom: 16px;
    overflow: hidden;
}

.faq-question {
    width: 100%;
    padding: 24px;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 18px;
    font-weight: 600;
    text-align: left;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition);
}

.faq-question:hover {
    color: var(--accent);
}

.faq-question svg {
    width: 24px;
    height: 24px;
    transition: var(--transition);
}

.faq-item.active .faq-question svg {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: var(--transition);
}

.faq-item.active .faq-answer {
    max-height: 500px;
}

.faq-answer p {
    padding: 0 24px 24px;
    color: var(--text-secondary);
}

/* Scroll Reveal Animation */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Loading State */
.loading {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 60px;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--border);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Responsive */
@media (max-width: 1024px) {
    .section-title {
        font-size: 36px;
    }
    
    .hero h1 {
        font-size: 48px;
    }
    
    .about-grid,
    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .timeline::before {
        left: 20px;
    }
    
    .timeline-item,
    .timeline-item:nth-child(even) {
        justify-content: flex-start;
        padding-left: 50px;
        padding-right: 0;
    }
    
    .timeline-content::after,
    .timeline-item:nth-child(odd) .timeline-content::after,
    .timeline-item:nth-child(even) .timeline-content::after {
        left: -38px;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: block;
    }
    
    .hero h1 {
        font-size: 36px;
    }
    
    .section-title {
        font-size: 28px;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    
    section {
        padding: 80px 0;
    }
    
    /* Timeline mobile adjustments */
    .timeline-block.has-image {
        flex-direction: column;
    }
    
    .timeline-item:nth-child(odd) .timeline-block.has-image,
    .timeline-item:nth-child(even) .timeline-block.has-image {
        flex-direction: column;
    }
    
    .timeline-block.has-image .timeline-image,
    .timeline-block.has-image .timeline-content {
        flex: none;
        width: 100%;
    }
    
    .timeline-image {
        height: 200px;
        min-height: 200px;
    }
    
    .timeline-item:nth-child(odd) .timeline-image,
    .timeline-item:nth-child(even) .timeline-image {
        border-radius: 12px 12px 0 0;
        border-bottom: none;
        border-right: 1px solid var(--border);
        border-left: 1px solid var(--border);
    }
    
    .timeline-item:nth-child(odd) .timeline-block.has-image .timeline-content,
    .timeline-item:nth-child(even) .timeline-block.has-image .timeline-content {
        border-radius: 0 0 12px 12px;
        border-left: 1px solid var(--border);
        border-right: 1px solid var(--border);
        border-top: none;
    }
}

/* Utility Classes */
.text-accent {
    color: var(--accent);
}

.text-muted {
    color: var(--text-muted);
}

.mb-4 {
    margin-bottom: 16px;
}

.mb-8 {
    margin-bottom: 32px;
}

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

.hidden {
    display: none;
}

/* Project Modal */
.project-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.project-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(5px);
}

.project-modal-content {
    position: relative;
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    width: 90%;
    max-width: 900px;
    max-height: 90vh;
    overflow-y: auto;
    z-index: 1;
}

.project-modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: 8px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--text-secondary);
    z-index: 2;
    transition: var(--transition);
}

.project-modal-close:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.project-modal-body {
    padding: 0;
}

.project-modal-image {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 16px 16px 0 0;
}

.project-modal-info {
    padding: 32px;
}

.project-modal-category {
    color: var(--accent);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 12px;
}

.project-modal-info h2 {
    font-size: 32px;
    margin-bottom: 20px;
}

.project-modal-description {
    color: var(--text-secondary);
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 24px;
}

.project-modal-client,
.project-modal-year {
    color: var(--text-secondary);
    margin-bottom: 12px;
}

.project-modal-tools {
    margin: 20px 0;
}

.project-modal-tools strong {
    display: block;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.tool-tag {
    display: inline-block;
    padding: 6px 12px;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: 6px;
    font-size: 13px;
    color: var(--text-secondary);
    margin: 0 8px 8px 0;
}

.project-modal-gallery {
    margin-top: 32px;
}

.project-modal-gallery h3 {
    font-size: 20px;
    margin-bottom: 16px;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
}

.gallery-grid img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 8px;
    transition: var(--transition);
}

.gallery-grid img:hover {
    transform: scale(1.05);
}

@media (max-width: 768px) {
    .project-modal-content {
        width: 95%;
        max-height: 95vh;
    }
    
    .project-modal-info {
        padding: 20px;
    }
    
    .project-modal-info h2 {
        font-size: 24px;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Service Modal */
.service-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(5px);
}

.service-modal-content {
    position: relative;
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    width: 90%;
    max-width: 700px;
    max-height: 90vh;
    overflow-y: auto;
    z-index: 1;
}

.service-modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: 8px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--text-secondary);
    z-index: 2;
    transition: var(--transition);
}

.service-modal-close:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.service-modal-body {
    padding: 40px;
}

.service-modal-header {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 24px;
}

.service-modal-icon {
    width: 64px;
    height: 64px;
    background: rgba(245, 158, 11, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.service-modal-icon svg {
    width: 32px;
    height: 32px;
    color: var(--accent);
}

.service-modal-title {
    flex: 1;
}

.service-modal-title h2 {
    font-size: 28px;
    margin-bottom: 8px;
}

.service-modal-description {
    color: var(--text-secondary);
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 32px;
}

.service-modal-features {
    margin-bottom: 32px;
}

.service-modal-features h3 {
    font-size: 18px;
    margin-bottom: 16px;
}

.service-modal-features ul {
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.service-modal-features li {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-secondary);
    font-size: 14px;
}

.service-modal-features li::before {
    content: '';
    width: 6px;
    height: 6px;
    background: var(--accent);
    border-radius: 50%;
    flex-shrink: 0;
}

.service-modal-pricing {
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 20px;
    text-align: center;
}

.service-modal-pricing-label {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.service-modal-pricing-value {
    font-size: 24px;
    font-weight: 700;
    color: var(--accent);
}

@media (max-width: 768px) {
    .service-modal-content {
        width: 95%;
        max-height: 95vh;
    }
    
    .service-modal-body {
        padding: 24px;
    }
    
    .service-modal-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .service-modal-title h2 {
        font-size: 24px;
    }
    
    .service-modal-features ul {
        grid-template-columns: 1fr;
    }
}

/* Lightbox */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 20000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #fff;
    z-index: 20001;
    transition: all 0.3s ease;
}

.lightbox-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

.lightbox-content {
    position: relative;
    z-index: 1;
    max-width: 90%;
    max-height: 90%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-image {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

@media (max-width: 768px) {
    .lightbox-close {
        top: 10px;
        right: 10px;
        width: 40px;
        height: 40px;
    }
    
    .lightbox-image {
        max-width: 95%;
        max-height: 80vh;
    }
}

/* Team Member Modal */
.team-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.team-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(4px);
}

.team-modal-content {
    position: relative;
    background: var(--bg-surface);
    border-radius: 20px;
    max-width: 800px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    border: 1px solid var(--border);
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.5);
}

.team-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    color: var(--text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    z-index: 10;
}

.team-modal-close:hover {
    background: var(--accent);
    color: var(--bg-primary);
    border-color: var(--accent);
}

.team-modal-header {
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 32px 32px 24px;
    border-bottom: 1px solid var(--border);
}

.team-modal-header img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--accent);
}

.team-modal-header .avatar-placeholder {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    font-weight: 700;
    color: var(--bg-primary);
    border: 3px solid var(--accent);
}

.team-modal-header-info h2 {
    font-size: 28px;
    margin-bottom: 4px;
    color: var(--text-primary);
}

.team-modal-header-info .role {
    color: var(--accent);
    font-size: 16px;
    margin-bottom: 0;
}

.team-modal-body {
    padding: 24px 32px 32px;
}

.team-modal-section {
    margin-bottom: 32px;
}

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

.team-modal-section h3 {
    font-size: 18px;
    margin-bottom: 16px;
    color: var(--accent);
    display: flex;
    align-items: center;
    gap: 8px;
}

.team-modal-section h3 svg {
    width: 20px;
    height: 20px;
}

.team-modal-bio {
    color: var(--text-secondary);
    line-height: 1.7;
    white-space: pre-wrap;
}

.team-modal-applications {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.team-modal-applications .app-tag {
    padding: 6px 14px;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: 50px;
    font-size: 13px;
    color: var(--text-secondary);
    transition: var(--transition);
}

.team-modal-applications .app-tag:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.team-modal-timeline {
    position: relative;
    padding-left: 24px;
}

.team-modal-timeline::before {
    content: '';
    position: absolute;
    left: 6px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--border);
}

.team-modal-timeline-item {
    position: relative;
    padding-bottom: 24px;
}

.team-modal-timeline-item:last-child {
    padding-bottom: 0;
}

.team-modal-timeline-item::before {
    content: '';
    position: absolute;
    left: -24px;
    top: 6px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--accent);
    border: 2px solid var(--bg-surface);
}

.team-modal-timeline-date {
    font-size: 12px;
    color: var(--accent);
    font-weight: 600;
    margin-bottom: 4px;
}

.team-modal-timeline-item h4 {
    font-size: 16px;
    margin-bottom: 4px;
    color: var(--text-primary);
}

.team-modal-timeline-item p {
    font-size: 14px;
    color: var(--text-secondary);
    margin: 0;
}

.team-modal-socials {
    display: flex;
    gap: 12px;
    margin-top: 16px;
}

.team-modal-socials a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    transition: var(--transition);
}

.team-modal-socials a:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--bg-primary);
}

.team-modal-socials svg {
    width: 18px;
    height: 18px;
}

@media (max-width: 768px) {
    .team-modal {
        padding: 10px;
    }
    
    .team-modal-content {
        max-height: 95vh;
    }
    
    .team-modal-header {
        flex-direction: column;
        text-align: center;
        padding: 24px 20px 20px;
    }
    
    .team-modal-header img,
    .team-modal-header .avatar-placeholder {
        width: 80px;
        height: 80px;
    }
    
    .team-modal-header-info h2 {
        font-size: 24px;
    }
    
    .team-modal-body {
        padding: 20px;
    }
    
    .team-modal-timeline {
        padding-left: 20px;
    }
}
