/* Tavas Technologies - Main Stylesheet */

:root {
    --primary-purple: #1a0033;
    --accent-purple: #4a148c;
    --light-purple: #7b1fa2;
    --text-primary: #1a1a1a;
    --text-secondary: #666666;
    --bg-white: #ffffff;
    --bg-light: #f8f9fa;
    --border-color: #e0e0e0;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.16);
    --radius: 16px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
}

/* Navigation */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    transition: all 0.3s ease;
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.05);
}

nav.scrolled {
    box-shadow: var(--shadow-sm);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--primary-purple);
    text-decoration: none;
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-link {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: var(--accent-purple);
}

.nav-link.active {
    color: var(--accent-purple);
}

.cta-button {
    background: var(--accent-purple);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
}

.cta-button:hover {
    background: var(--light-purple);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.mobile-menu {
    display: none;
    cursor: pointer;
}

.profile-icon i {
    font-size: 1.75rem;
    vertical-align: middle;
}

/* Hero Section */
.hero {
    margin-top: 80px;
    min-height: 90vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, var(--bg-light) 0%, var(--bg-white) 100%);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    width: 150%;
    height: 150%;
    background: radial-gradient(circle at 20% 80%, rgba(74, 20, 140, 0.05) 0%, transparent 50%);
    animation: float 20s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translate(-10%, -10%) rotate(0deg); }
    50% { transform: translate(10%, 10%) rotate(180deg); }
}

.hero-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 2rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-text h1 {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    color: var(--primary-purple);
}

.hero-text h1 span {
    background: linear-gradient(135deg, var(--accent-purple), var(--light-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-text p {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.secondary-button {
    background: transparent;
    color: var(--accent-purple);
    padding: 0.75rem 1.5rem;
    border: 2px solid var(--accent-purple);
    border-radius: var(--radius);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.secondary-button:hover {
    background: var(--accent-purple);
    color: white;
}

.hero-visual {
    position: relative;
}

.floating-card {
    background: white;
    border-radius: var(--radius);
    padding: 2rem;
    box-shadow: var(--shadow-lg);
    position: relative;
    overflow: hidden;
}

.energy-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.energy-node {
    aspect-ratio: 1;
    background: var(--bg-light);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    cursor: pointer;
}

.energy-node:hover {
    background: var(--accent-purple);
    color: white;
    transform: scale(1.05);
}

.energy-node i {
    font-size: 2rem;
}

.dashboard-preview {
    position: relative;
    background: white;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.dashboard-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(26, 0, 51, 0.9), transparent);
    padding: 2rem;
}

.dashboard-stats {
    display: flex;
    gap: 2rem;
    justify-content: center;
}

.stat-mini {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: white;
    font-size: 0.875rem;
    font-weight: 500;
}

.stat-mini i {
    font-size: 1.25rem;
    color: var(--light-purple);
}

/* Page Header */
.page-header {
    margin-top: 80px;
    padding: 4rem 2rem 2rem;
    background: linear-gradient(135deg, var(--bg-light) 0%, var(--bg-white) 100%);
    text-align: center;
}

.page-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-purple);
    margin-bottom: 1rem;
}

.page-header p {
    font-size: 1.125rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

/* Content Sections */
.content-section {
    padding: 4rem 2rem;
}

.content-container {
    max-width: 1200px;
    margin: 0 auto;
}

/* Features Section */
.features {
    padding: 6rem 2rem;
    background: var(--bg-white);
}

.section-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 4rem;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-purple);
    margin-bottom: 1rem;
}

.section-header p {
    font-size: 1.125rem;
    color: var(--text-secondary);
}

.features-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: white;
    border-radius: var(--radius);
    padding: 2.5rem;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--accent-purple);
}

.feature-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--accent-purple), var(--light-purple));
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.feature-icon i {
    color: white;
    font-size: 1.75rem;
}

.feature-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--primary-purple);
}

.feature-card p {
    color: var(--text-secondary);
    line-height: 1.7;
}

/* Technology Section */
.technology {
    padding: 6rem 2rem;
    background: var(--bg-light);
}

.tech-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.tech-visual {
    position: relative;
}

.tech-stack {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.tech-item {
    background: white;
    padding: 1.5rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    text-align: center;
    transition: all 0.3s ease;
}

.tech-item:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-md);
}

.tech-item i {
    font-size: 2.5rem;
    color: var(--accent-purple);
    margin-bottom: 1rem;
}

.tech-item h4 {
    font-size: 1.125rem;
    color: var(--primary-purple);
    margin-bottom: 0.5rem;
}

.tech-item p {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

/* Team Section */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.team-member {
    background: white;
    border-radius: var(--radius);
    padding: 2rem;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
}

.team-member:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.member-photo {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    margin: 0 auto 1.5rem;
    background: var(--bg-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: var(--accent-purple);
    overflow: hidden;
}

.member-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.member-name {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--primary-purple);
    margin-bottom: 0.5rem;
}

.member-title {
    color: var(--accent-purple);
    font-weight: 500;
    margin-bottom: 1rem;
}

.member-bio {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.member-social {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.social-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--accent-purple);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.social-link:hover {
    color: var(--light-purple);
}

/* Contact Form */
.contact-form {
    background: white;
    border-radius: var(--radius);
    padding: 2.5rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
}

.form-grid {
    display: grid;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.form-group input,
.form-group textarea,
.form-group select {
    padding: 0.75rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--accent-purple);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.form-submit {
    background: var(--accent-purple);
    color: white;
    padding: 0.875rem 2rem;
    border: none;
    border-radius: var(--radius);
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.form-submit:hover {
    background: var(--light-purple);
    transform: translateY(-2px);
}

/* Contact Info */
.contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

/* Updated Contact Card CSS - Add these styles to your existing CSS */

.contact-card {
    background: white;
    border-radius: var(--radius);
    padding: 2rem;
    text-align: center;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    
    /* Add flexbox properties */
    display: flex;
    flex-direction: column;
    min-height: 200px; /* Optional: ensures minimum height */
}

.contact-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.contact-card .contact-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--accent-purple), var(--light-purple));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
}

.contact-card .contact-icon i {
    color: white;
    font-size: 1.5rem;
}

.contact-card h3 {
    font-size: 1.25rem;
    color: var(--primary-purple);
    margin-bottom: 0.5rem;
}

.contact-card p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
    flex-grow: 1; /* This allows the paragraph to expand and fill available space */
}

.contact-card a {
    color: var(--accent-purple);
    text-decoration: none;
    font-weight: 500;
    margin-top: auto; /* This pushes the link to the bottom of the card */
}

.contact-card a:hover {
    text-decoration: underline;
}

/* Job Listings */
.job-listings {
    display: grid;
    gap: 1.5rem;
}

.job-card {
    background: white;
    border-radius: var(--radius);
    padding: 2rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.job-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border-color: var(--accent-purple);
}

.job-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.job-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--primary-purple);
    margin-bottom: 0.5rem;
}

.job-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.job-description {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.job-apply {
    color: var(--accent-purple);
    text-decoration: none;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: color 0.3s ease;
}

.job-apply:hover {
    color: var(--light-purple);
}

/* Stats Section */
.stats {
    padding: 4rem 2rem;
    background: var(--primary-purple);
    color: white;
}

.stats-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    text-align: center;
}

.stat-item h3 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.stat-item p {
    font-size: 1.125rem;
    opacity: 0.9;
}

/* CTA Section */
.cta-section {
    padding: 6rem 2rem;
    background: linear-gradient(135deg, var(--accent-purple) 0%, var(--light-purple) 100%);
    color: white;
    text-align: center;
}

.cta-content {
    max-width: 800px;
    margin: 0 auto;
}

.cta-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.cta-content p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.95;
}

.cta-white {
    background: white;
    color: var(--accent-purple);
    padding: 1rem 2rem;
    border-radius: var(--radius);
    text-decoration: none;
    font-weight: 600;
    display: inline-block;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-md);
}

.cta-white:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* Footer */
footer {
    background: var(--primary-purple);
    color: white;
    padding: 4rem 2rem 2rem;
    margin-top: auto;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-column h4 {
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
}

.footer-column a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    display: block;
    margin-bottom: 0.75rem;
    transition: color 0.3s ease;
}

.footer-column a:hover {
    color: white;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    opacity: 0.8;
}

/* Dialogflow Messenger Custom Styling */
df-messenger {
    z-index: 9999;
    position: fixed;
    bottom: 24px;
    right: 24px;
    --df-messenger-font-color: var(--text-primary);
    --df-messenger-font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --df-messenger-chat-background: #f8f9fa;
    --df-messenger-message-user-background: #6e70f8;
    --df-messenger-message-bot-background: #ffffff;
    --df-messenger-primary-color: var(--accent-purple);
    --df-messenger-titlebar-background: var(--primary-purple);
    --df-messenger-titlebar-font-color: #ffffff;
    --df-messenger-chat-bubble-background: var(--accent-purple);
    --df-messenger-chat-bubble-font-color: #ffffff;
    --df-messenger-message-border-radius: 12px;
    --df-messenger-chat-bubble-border-radius: 28px;
    --df-messenger-chat-bubble-size: 56px;
    --df-messenger-chat-bubble-icon-color: #ffffff;
    --df-messenger-chat-window-width: 400px;
    --df-messenger-chat-window-height: 600px;
    --df-messenger-send-icon-color: var(--accent-purple);
    --df-messenger-input-box-focus-border-color: var(--accent-purple);
    --df-messenger-chat-bubble-icon-size: 24px;
    --df-messenger-link-color: var(--accent-purple);
    --df-messenger-link-font-weight: 500;
}

df-messenger::part(chat-bubble) {
    box-shadow: var(--shadow-lg) !important;
    transition: all 0.3s ease;
    opacity: 1 !important;
    visibility: visible !important;
    display: flex !important;
}

df-messenger::part(chat-bubble):hover {
    transform: scale(1.05);
    box-shadow: 0 12px 40px rgba(74, 20, 140, 0.3) !important;
}

df-messenger::part(chat-wrapper) {
    box-shadow: var(--shadow-lg);
}

.chat-fallback {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 56px;
    height: 56px;
    background: var(--accent-purple);
    border-radius: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: var(--shadow-lg);
    transition: all 0.3s ease;
    z-index: 9998;
}

.chat-fallback:hover {
    transform: scale(1.05);
    box-shadow: 0 12px 40px rgba(74, 20, 140, 0.3);
}

.chat-fallback i {
    font-size: 24px;
    color: white;
}

df-messenger ~ .chat-fallback {
    display: none;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .mobile-menu {
        display: block;
    }

    .hero-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .hero-text h1 {
        font-size: 2.5rem;
    }

    .tech-content {
        grid-template-columns: 1fr;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .stats-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .contact-info {
        grid-template-columns: 1fr;
    }

    .team-grid {
        grid-template-columns: 1fr;
    }

    df-messenger {
        bottom: 16px;
        right: 16px;
        --df-messenger-chat-window-width: calc(100vw - 32px);
        --df-messenger-chat-window-height: calc(100vh - 100px);
    }

    .chat-fallback {
        bottom: 16px;
        right: 16px;
    }
}

/* Animations */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.pulse {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { opacity: 0.6; }
    50% { opacity: 1; }
    100% { opacity: 0.6; }
}