:root {
    --primary: #B22222;
    --primary-dark: #8B0000;
    --secondary: #FF6B35;
    --accent: #DAA520;
    --accent-light: #F4E4C1;
    --ocean: #1E3A5F;
    --ocean-light: #2C5282;
    --text-dark: #2D1810;
    --text-light: #5C4033;
    --bg-white: #FFFCF8;
    --bg-light: #FFF8F0;
    --border: #E8D5C4;
    --shell-pink: #FFB6C1;
}

/* Page Header */
.page-header {
    padding: 140px 0 60px;
    background: linear-gradient(135deg, var(--bg-light) 0%, var(--bg-white) 100%);
    text-align: center;
    border-bottom: 1px solid var(--border);
}

.page-header h1 {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    margin-bottom: 16px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.page-header p {
    font-size: 1.2rem;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
}

/* Services Detail Page */
.services-detail {
    padding: 80px 0;
    background: var(--bg-white);
}

.service-detail-card {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 48px;
    padding: 60px 0;
    border-bottom: 1px solid var(--border);
    align-items: start;
}

.service-detail-card:last-child {
    border-bottom: none;
}

.service-icon-large {
    width: 120px;
    height: 120px;
    flex-shrink: 0;
}

.service-icon-large svg {
    width: 100%;
    height: 100%;
}

.service-content h2 {
    font-size: 2rem;
    margin-bottom: 16px;
    color: var(--text-dark);
}

.service-lead {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 32px;
    line-height: 1.7;
}

.service-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.feature {
    padding: 24px;
    background: var(--bg-light);
    border-radius: 12px;
    border-left: 4px solid var(--primary);
}

.feature h4 {
    font-size: 1.1rem;
    margin-bottom: 8px;
    color: var(--text-dark);
}

.feature p {
    font-size: 0.95rem;
    color: var(--text-light);
    line-height: 1.6;
}

/* Responsive */
@media (max-width: 768px) {
    .service-detail-card {
        grid-template-columns: 1fr;
        gap: 24px;
        text-align: center;
    }
    
    .service-icon-large {
        width: 80px;
        height: 80px;
        margin: 0 auto;
    }
    
    .service-features {
        grid-template-columns: 1fr;
    }
    
    .feature {
        text-align: left;
    }
}

/* Projects Page Styles */
.projects-grid {
    display: grid;
    gap: 48px;
    padding: 60px 0;
}

.project-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    padding: 48px;
    background: var(--bg-white);
    border-radius: 20px;
    border: 1px solid var(--border);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.project-card:nth-child(even) {
    direction: rtl;
}

.project-card:nth-child(even) > * {
    direction: ltr;
}

.project-visual {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-light);
    border-radius: 16px;
    min-height: 300px;
}

.project-visual svg {
    width: 80%;
    height: auto;
}

.project-content h3 {
    font-size: 1.8rem;
    margin-bottom: 16px;
    color: var(--text-dark);
}

.project-category {
    display: inline-block;
    padding: 6px 16px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: white;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 16px;
}

.project-desc {
    color: var(--text-light);
    margin-bottom: 24px;
    line-height: 1.7;
}

.project-results {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}

.result-item {
    text-align: center;
    padding: 16px;
    background: var(--bg-light);
    border-radius: 12px;
}

.result-number {
    display: block;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary);
}

.result-label {
    font-size: 0.85rem;
    color: var(--text-light);
}

@media (max-width: 968px) {
    .project-card {
        grid-template-columns: 1fr;
    }
    
    .project-card:nth-child(even) {
        direction: ltr;
    }
    
    .project-visual {
        min-height: 200px;
        order: -1;
    }
    
    .project-results {
        grid-template-columns: 1fr;
    }
}

/* Team Page Styles */
.team-hero {
    padding: 140px 0 80px;
    background: linear-gradient(135deg, var(--bg-light) 0%, var(--bg-white) 100%);
    text-align: center;
}

.team-hero h1 {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    margin-bottom: 16px;
}

.team-hero .subtitle {
    font-size: 1.3rem;
    color: var(--text-light);
    max-width: 700px;
    margin: 0 auto 24px;
}

.founders-section {
    padding: 80px 0;
    background: var(--bg-white);
}

.founder-card {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 48px;
    padding: 48px;
    margin-bottom: 48px;
    background: var(--bg-light);
    border-radius: 20px;
    border: 1px solid var(--border);
}

.founder-card:nth-child(even) {
    direction: rtl;
}

.founder-card:nth-child(even) > * {
    direction: ltr;
}

.founder-photo {
    width: 100%;
    aspect-ratio: 1;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 4rem;
}

.founder-info h2 {
    font-size: 2rem;
    margin-bottom: 8px;
}

.founder-title {
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 16px;
}

.founder-bio {
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 24px;
}

.founder-attributes {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 24px;
}

.attribute {
    padding: 6px 14px;
    background: white;
    border-radius: 20px;
    font-size: 0.85rem;
    color: var(--text-dark);
    border: 1px solid var(--border);
}

.founder-quote {
    padding: 20px 24px;
    background: white;
    border-left: 4px solid var(--secondary);
    border-radius: 0 12px 12px 0;
    font-style: italic;
    color: var(--text-light);
}

.combined-story {
    padding: 60px 48px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    border-radius: 20px;
    margin-top: 48px;
}

.combined-story h3 {
    font-size: 1.8rem;
    margin-bottom: 24px;
    text-align: center;
}

.combined-story p {
    font-size: 1.1rem;
    line-height: 1.8;
    opacity: 0.95;
}

.philosophy-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    padding: 80px 0;
}

.philosophy-card {
    text-align: center;
    padding: 32px 24px;
    background: var(--bg-white);
    border-radius: 16px;
    border: 1px solid var(--border);
    transition: all 0.3s ease;
}

.philosophy-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.philosophy-icon {
    font-size: 2.5rem;
    margin-bottom: 16px;
}

.philosophy-card h4 {
    font-size: 1.1rem;
    margin-bottom: 12px;
    color: var(--text-dark);
}

.philosophy-card p {
    font-size: 0.9rem;
    color: var(--text-light);
    line-height: 1.6;
}

@media (max-width: 968px) {
    .founder-card {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .founder-card:nth-child(even) {
        direction: ltr;
    }
    
    .founder-photo {
        width: 200px;
        height: 200px;
        margin: 0 auto;
    }
    
    .founder-attributes {
        justify-content: center;
    }
    
    .philosophy-cards {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .philosophy-cards {
        grid-template-columns: 1fr;
    }
}

/* About Page Styles */
.about-story {
    padding: 80px 0;
}

.story-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}

.story-content h2 {
    font-size: 2.2rem;
    margin-bottom: 24px;
}

.story-content p {
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 16px;
}

.story-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.timeline {
    padding: 80px 0;
    background: var(--bg-light);
}

.timeline h2 {
    text-align: center;
    font-size: 2.2rem;
    margin-bottom: 48px;
}

.timeline-items {
    max-width: 800px;
    margin: 0 auto;
}

.timeline-item {
    display: flex;
    gap: 32px;
    padding: 32px;
    margin-bottom: 24px;
    background: white;
    border-radius: 16px;
    border-left: 4px solid var(--primary);
}

.timeline-year {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    min-width: 80px;
}

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

.timeline-content p {
    color: var(--text-light);
}

.tech-stack {
    padding: 80px 0;
    text-align: center;
}

.tech-stack h2 {
    font-size: 2.2rem;
    margin-bottom: 48px;
}

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

.tech-item {
    padding: 32px 24px;
    background: var(--bg-white);
    border-radius: 16px;
    border: 1px solid var(--border);
    transition: all 0.3s ease;
}

.tech-item:hover {
    border-color: var(--primary);
    transform: translateY(-4px);
}

.tech-icon {
    font-size: 2.5rem;
    margin-bottom: 12px;
}

.tech-item h4 {
    font-size: 1rem;
    color: var(--text-dark);
}

@media (max-width: 768px) {
    .story-grid {
        grid-template-columns: 1fr;
    }
    
    .timeline-item {
        flex-direction: column;
        gap: 16px;
    }
}

/* Contact Page Styles */
.contact-section {
    padding: 140px 0 80px;
    background: linear-gradient(135deg, var(--bg-light) 0%, var(--bg-white) 100%);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
}

.contact-info h2 {
    font-size: 2.2rem;
    margin-bottom: 24px;
}

.contact-info > p {
    color: var(--text-light);
    margin-bottom: 32px;
    line-height: 1.7;
}

.contact-methods {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.contact-method {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 24px;
    background: white;
    border-radius: 16px;
    border: 1px solid var(--border);
    text-decoration: none;
    color: var(--text-dark);
    transition: all 0.3s ease;
}

.contact-method:hover {
    border-color: var(--primary);
    transform: translateX(8px);
}

.method-icon {
    font-size: 2rem;
}

.method-details h4 {
    font-size: 1.1rem;
    margin-bottom: 4px;
}

.method-details p {
    color: var(--text-light);
    font-size: 0.95rem;
}

/* AI Chat Widget */
.ai-chat-container {
    background: white;
    border-radius: 20px;
    border: 1px solid var(--border);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 600px;
}

.chat-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 20px 24px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
}

.chat-avatar {
    width: 48px;
    height: 48px;
    background: var(--secondary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.chat-title h3 {
    font-size: 1.1rem;
    margin-bottom: 2px;
}

.chat-title p {
    font-size: 0.85rem;
    opacity: 0.9;
}

.chat-messages {
    flex: 1;
    padding: 24px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
    background: var(--bg-light);
}

.message {
    display: flex;
    gap: 12px;
    max-width: 85%;
}

.message.ai {
    align-self: flex-start;
}

.message.user {
    align-self: flex-end;
    flex-direction: row-reverse;
}

.message-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
}

.message.ai .message-avatar {
    background: var(--secondary);
}

.message.user .message-avatar {
    background: var(--primary);
}

.message-content {
    padding: 16px 20px;
    border-radius: 20px;
    line-height: 1.6;
}

.message.ai .message-content {
    background: white;
    border-bottom-left-radius: 4px;
    color: var(--text-dark);
}

.message.user .message-content {
    background: var(--primary);
    color: white;
    border-bottom-right-radius: 4px;
}

.quick-replies {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.quick-reply {
    padding: 8px 16px;
    background: rgba(0, 102, 204, 0.1);
    border: 1px solid var(--primary);
    border-radius: 20px;
    font-size: 0.85rem;
    color: var(--primary);
    cursor: pointer;
    transition: all 0.2s ease;
}

.quick-reply:hover {
    background: var(--primary);
    color: white;
}

.chat-input-container {
    padding: 20px 24px;
    background: white;
    border-top: 1px solid var(--border);
}

.chat-input-wrapper {
    display: flex;
    gap: 12px;
}

.chat-input {
    flex: 1;
    padding: 14px 20px;
    border: 2px solid var(--border);
    border-radius: 30px;
    font-size: 1rem;
    outline: none;
    transition: border-color 0.2s ease;
}

.chat-input:focus {
    border-color: var(--primary);
}

.chat-send {
    width: 48px;
    height: 48px;
    background: var(--primary);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.chat-send:hover {
    background: var(--primary-dark);
    transform: scale(1.05);
}

.typing-indicator {
    display: none;
    align-items: center;
    gap: 4px;
    padding: 16px 20px;
    background: white;
    border-radius: 20px;
    border-bottom-left-radius: 4px;
}

.typing-indicator.active {
    display: flex;
}

.typing-indicator span {
    width: 8px;
    height: 8px;
    background: var(--text-light);
    border-radius: 50%;
    animation: typing 1.4s infinite;
}

.typing-indicator span:nth-child(2) { animation-delay: 0.2s; }
.typing-indicator span:nth-child(3) { animation-delay: 0.4s; }

@keyframes typing {
    0%, 60%, 100% { transform: translateY(0); }
    30% { transform: translateY(-10px); }
}

@media (max-width: 968px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .ai-chat-container {
        height: 500px;
    }
}
