/* DevCentre Website - Main Stylesheet */

/* ============================================
   BASE STYLES
   ============================================ */

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

body {
    font-family: Avenir, Helvetica, Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    color: rgb(0, 10, 69);
    line-height: 1.6;
}

/* ============================================
   HEADER & NAVIGATION
   ============================================ */

header {
    background-color: #2ab3b8;
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

nav {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 1rem;
    text-decoration: none;
}

.logo-container img {
    width: 60px;
    height: auto;
}

.logo-container h1 {
    color: white;
    font-size: 1.5rem;
    font-weight: bold;
}

.nav-links {
    display: flex;
    gap: 1.5rem;
    list-style: none;
}

.nav-links a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: opacity 0.3s;
    padding: 0.5rem 1rem;
    border-radius: 4px;
}

.nav-links a:hover {
    opacity: 0.8;
    background-color: rgba(255, 255, 255, 0.1);
}

.nav-links a.active {
    background-color: rgba(255, 255, 255, 0.2);
    font-weight: 600;
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
}

/* ============================================
   MAIN CONTENT
   ============================================ */

main {
    max-width: 1400px;
    margin: 0 auto;
    padding: 4rem 2rem;
}

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

/* ============================================
   BUTTONS
   ============================================ */

.btn {
    padding: 0.875rem 2rem;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s;
    border: 2px solid transparent;
    cursor: pointer;
}

.btn-primary {
    background-color: #2ab3b8;
    color: white;
}

.btn-primary:hover {
    background-color: #1e7b80;
}

.btn-outline {
    border: 2px solid #2ab3b8;
    color: #2ab3b8;
    background: white;
}

.btn-outline:hover {
    background-color: #2ab3b8;
    color: white;
}

.btn-white-outline {
    border: 2px solid white;
    color: white;
    background: transparent;
}

.btn-white-outline:hover {
    background: white;
    color: #2ab3b8;
}

.btn-submit {
    background-color: #2ab3b8;
    color: white;
    padding: 1rem 2rem;
    border: none;
    border-radius: 4px;
    font-size: 1.1rem;
    font-weight: 500;
    cursor: pointer;
    width: 100%;
    transition: background-color 0.3s;
}

.btn-submit:hover {
    background-color: #1e7b80;
}

/* ============================================
   HERO SECTIONS
   ============================================ */

/* Hero section for index.html and services.html */
.hero {
    position: relative;
    height: 500px;
    overflow: hidden;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    margin-bottom: 4rem;
    border-radius: 8px;
}

.hero-content {
    position: absolute;
    left: 0;
    top: 0;
    width: 50%;
    height: 100%;
    background: linear-gradient(to right, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 0.9) 70%, rgba(255, 255, 255, 0) 100%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 3rem;
    z-index: 2;
}

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 500;
    color: #2ab3b8;
    margin-bottom: 1rem;
}

.hero-content p {
    font-size: 1.25rem;
    color: #4a5568;
    line-height: 1.8;
}

.hero-image {
    position: absolute;
    right: 0;
    top: 0;
    width: 70%;
    height: 100%;
}

.hero-image::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 0) 60%);
    z-index: 1;
}

.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
}

/* Hero section for examples.html */
.hero-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 5rem 2rem;
    min-height: 70vh;
    display: flex;
    align-items: center;
}

.hero-section .hero-content {
    position: relative;
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    width: 100%;
    background: none;
    height: auto;
    padding: 0;
}

.hero-text h2 {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.2;
    color: #2ab3b8;
    margin-bottom: 1.5rem;
}

.hero-text p {
    font-size: 1.25rem;
    line-height: 1.8;
    color: #37474f;
    margin-bottom: 2rem;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.hero-section .hero-image {
    position: relative;
    width: 100%;
    height: auto;
}

.hero-section .hero-image::before {
    display: none;
}

.hero-section .hero-image img {
    width: 100%;
    max-width: 500px;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.hero-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(42, 179, 184, 0.8);
    padding: 2rem;
    color: white;
}

.hero-overlay h2 {
    font-size: 3.5rem;
    font-weight: 500;
}

/* ============================================
   SECTION HEADERS
   ============================================ */

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: 2.5rem;
    color: #2ab3b8;
    margin-bottom: 1rem;
}

.section-header p {
    font-size: 1.25rem;
    color: #37474f;
    max-width: 700px;
    margin: 0 auto;
}

/* ============================================
   CHAT INTERFACE (Assistant Page)
   ============================================ */

.chat-section {
    padding: 3rem 2rem;
}

.chat-container {
    max-width: 900px;
    margin: 0 auto;
}

.chat-card {
    background: white;
    border: 2px solid #2ab3b8;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.chat-messages {
    height: 400px;
    overflow-y: auto;
    padding: 1rem;
    background: linear-gradient(to bottom, #f8f9fa, #ffffff);
}

.user-message,
.assistant-message {
    padding: 0 1rem;
    margin: 0.75rem 0;
    display: flex;
}

.user-message {
    justify-content: flex-end;
}

.assistant-message {
    justify-content: flex-start;
}

.message-box {
    display: inline-block;
    padding: 0.75rem 1rem;
    max-width: 80%;
    border-radius: 18px;
    word-wrap: break-word;
    line-height: 1.6;
}

.user-message .message-box {
    background-color: rgb(205, 255, 208);
    color: rgb(33, 102, 60);
    border-top-right-radius: 4px;
}

.assistant-message .message-box {
    background-color: rgb(175, 244, 255);
    color: rgb(29, 90, 107);
    border-top-left-radius: 4px;
}

.message-box.loading {
    background-color: rgb(220, 220, 220);
}

.loading-dots {
    animation: blink 1.4s infinite;
}

@keyframes blink {
    0%, 100% { opacity: 0.2; }
    50% { opacity: 1; }
}

.chat-input-container {
    display: flex;
    padding: 1rem;
    background: white;
    border-top: 1px solid #e0e0e0;
    gap: 0.5rem;
}

.chat-input {
    flex: 1;
    padding: 0.75rem 1rem;
    border: 1px solid #ddd;
    border-radius: 24px;
    font-size: 1rem;
    font-family: inherit;
    outline: none;
}

.chat-input:focus {
    border-color: #2ab3b8;
}

.chat-input:disabled {
    background-color: #f5f5f5;
    cursor: not-allowed;
}

.btn-send {
    padding: 0.75rem 1.5rem;
    background-color: #2ab3b8;
    color: white;
    border: none;
    border-radius: 24px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s;
    min-width: 80px;
}

.btn-send:hover:not(:disabled) {
    background-color: #1e7b80;
}

.btn-send:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

/* Markdown content styling in messages */
.message-box p {
    margin: 0.5rem 0;
}

.message-box p:first-child {
    margin-top: 0;
}

.message-box p:last-child {
    margin-bottom: 0;
}

.message-box ul,
.message-box ol {
    margin: 0.5rem 0;
    padding-left: 1.5rem;
}

.message-box li {
    margin: 0.25rem 0;
}

.message-box code {
    background-color: rgba(0, 0, 0, 0.05);
    padding: 0.2rem 0.4rem;
    border-radius: 3px;
    font-family: monospace;
}

.message-box pre {
    background-color: rgba(0, 0, 0, 0.05);
    padding: 0.5rem;
    border-radius: 4px;
    overflow-x: auto;
}

/* ============================================
   FEATURES & CARDS
   ============================================ */

.features-section {
    padding: 5rem 2rem;
    background: linear-gradient(to bottom, #ffffff, #f8f9fa);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: white;
    border: 2px solid #2ab3b8;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s;
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 25px rgba(42, 179, 184, 0.1);
}

.feature-card img {
    width: 100%;
    height: 300px;
    object-fit: cover;
}

.feature-content {
    padding: 2rem;
}

.feature-content h3 {
    font-size: 2rem;
    color: #2ab3b8;
    margin-bottom: 1rem;
}

.feature-content p {
    line-height: 1.8;
    margin-bottom: 1.5rem;
    min-height: 80px;
}

.feature-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.tag {
    padding: 0.25rem 0.75rem;
    border: 1px solid #2ab3b8;
    border-radius: 16px;
    font-size: 0.875rem;
    color: #2ab3b8;
}

/* ============================================
   BENEFITS SECTION
   ============================================ */

.benefits-section {
    padding: 5rem 2rem;
    background: linear-gradient(to bottom, #f8f9fa, #ffffff);
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
    text-align: center;
}

.benefit-item {
    padding: 2rem;
}

.benefit-icon {
    font-size: 4rem;
    color: #2ab3b8;
    margin-bottom: 1rem;
}

.benefit-item h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

/* ============================================
   SERVICE CARDS
   ============================================ */

.service-card {
    background: white;
    border: 2px solid #2ab3b8;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 3rem;
    transition: all 0.3s;
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 25px rgba(42, 179, 184, 0.1);
}

.service-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
}

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

.service-card:nth-child(even) .service-text {
    direction: ltr;
}

.service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    min-height: 400px;
}

.service-text {
    padding: 3rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.service-number {
    font-size: 3rem;
    font-weight: 700;
    color: rgba(42, 179, 184, 0.2);
    margin-bottom: 1rem;
}

.service-text h3 {
    font-size: 2rem;
    color: #2ab3b8;
    margin-bottom: 1.5rem;
}

.service-text p {
    font-size: 1.1rem;
    line-height: 1.8;
}

/* ============================================
   ABOUT PAGE
   ============================================ */

.story-section {
    background: white;
    padding: 4rem 3rem;
    border-radius: 8px;
    margin-bottom: 4rem;
    border: 2px solid #2ab3b8;
}

.story-content h2 {
    font-size: 2.5rem;
    color: #2ab3b8;
    margin-bottom: 2rem;
    text-align: center;
}

.story-content p {
    font-size: 1.2rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.values-section {
    margin-bottom: 4rem;
}

.values-header {
    text-align: center;
    margin-bottom: 3rem;
}

.values-header h2 {
    font-size: 2.5rem;
    color: #2ab3b8;
    margin-bottom: 1rem;
}

.values-header p {
    font-size: 1.25rem;
    color: #37474f;
}

.value-card {
    background: white;
    border: 2px solid #2ab3b8;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 3rem;
    transition: all 0.3s;
}

.value-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 25px rgba(42, 179, 184, 0.1);
}

.value-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
}

.value-card:nth-child(even) .value-content {
    grid-template-columns: 1fr 1fr;
    direction: rtl;
}

.value-card:nth-child(even) .value-text {
    direction: ltr;
}

.value-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    min-height: 350px;
}

.value-text {
    padding: 3rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.value-text h3 {
    font-size: 2rem;
    color: #2ab3b8;
    margin-bottom: 1.5rem;
}

.value-text p {
    font-size: 1.15rem;
    line-height: 1.8;
}

/* ============================================
   CONTACT PAGE
   ============================================ */

.contact-header {
    text-align: center;
    margin-bottom: 3rem;
}

.contact-header h2 {
    font-size: 2.5rem;
    color: #2ab3b8;
    margin-bottom: 1rem;
}

.contact-header p {
    font-size: 1.25rem;
    line-height: 1.8;
}

.contact-form {
    background: white;
    padding: 3rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    border: 2px solid #2ab3b8;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #2c3e50;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: inherit;
    font-size: 1rem;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: #2ab3b8;
}

.form-group textarea {
    min-height: 150px;
    resize: vertical;
}

.required {
    color: #e74c3c;
}

.alternative-contact {
    text-align: center;
    margin-top: 3rem;
    padding: 2rem;
    background: rgba(42, 179, 184, 0.05);
    border-radius: 8px;
}

.alternative-contact h3 {
    color: #2ab3b8;
    margin-bottom: 1rem;
}

.alternative-contact p {
    margin-bottom: 1rem;
}

.alternative-contact a {
    color: #2ab3b8;
    text-decoration: none;
    font-weight: 500;
}

.alternative-contact a:hover {
    text-decoration: underline;
}

/* ============================================
   CTA SECTIONS
   ============================================ */

.cta-section {
    padding: 5rem 2rem;
}

.cta-card {
    background-color: #2ab3b8;
    color: white;
    padding: 4rem 2rem;
    border-radius: 8px;
    text-align: center;
}

.cta-card h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.cta-card p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

/* ============================================
   FOOTER
   ============================================ */

footer {
    background-color: #2ab3b8;
    color: white;
    padding: 1.5rem 2rem;
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.footer-content a {
    color: white;
    text-decoration: none;
    transition: opacity 0.3s;
}

.footer-content a:hover {
    opacity: 0.8;
}

/* ============================================
   PRODUCT CLASSES
   ============================================ */

.featured-product {
    background: white;
    border: 2px solid #2ab3b8;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 4rem;
    transition: all 0.3s ease;
}

.featured-product:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 25px rgba(42, 179, 184, 0.1);
}

.featured-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
}

.featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    min-height: 400px;
}

.featured-text {
    padding: 3rem;
}

.featured-text h2 {
    font-size: 2.5rem;
    color: #2ab3b8;
    margin-bottom: 1.5rem;
}

.featured-text .subtitle {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: #37474f;
}

.feature-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.feature-chips .tag {
    padding: 0.5rem 1rem;
    border: 1px solid #2ab3b8;
    border-radius: 16px;
    font-size: 0.875rem;
    color: #2ab3b8;
}

.featured-text p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.coming-soon-section {
    margin-top: 5rem;
}

.coming-soon-header {
    text-align: center;
    margin-bottom: 3rem;
}

.coming-soon-header h2 {
    font-size: 2.5rem;
    color: #2ab3b8;
}

.coming-soon-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.coming-soon-card {
    background: white;
    border: 2px solid rgba(42, 179, 184, 0.3);
    border-radius: 8px;
    overflow: hidden;
    opacity: 0.8;
    transition: all 0.3s ease;
}

.coming-soon-card:hover {
    opacity: 1;
    transform: translateY(-4px);
}

.coming-soon-card .card-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.coming-soon-card .card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.coming-soon-card .card-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(42, 179, 184, 0.1);
}

.coming-soon-card .card-content {
    padding: 1.5rem;
}

.coming-soon-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #2ab3b8;
}

.coming-soon-card p {
    line-height: 1.6;
    color: #4a5568;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

@media (max-width: 960px) {
    .nav-links {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: block;
    }
    
    .hero {
        height: auto;
        min-height: 400px;
    }
    
    .hero-content {
        width: 100%;
        position: relative;
        background: rgba(255, 255, 255, 0.9);
        padding: 2rem;
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .hero-image {
        display: none;
    }
    
    .hero-section .hero-content {
        grid-template-columns: 1fr;
    }
    
    .hero-text h2 {
        font-size: 2.5rem;
    }
    
    .hero-overlay h2 {
        font-size: 2rem;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .section-header h2 {
        font-size: 2rem;
    }
    
    .service-content {
        grid-template-columns: 1fr;
    }
    
    .service-card:nth-child(even) .service-content {
        direction: ltr;
    }
    
    .service-text h3 {
        font-size: 1.5rem;
    }
    
    .value-content {
        grid-template-columns: 1fr;
    }
    
    .value-card:nth-child(even) .value-content {
        grid-template-columns: 1fr;
        direction: ltr;
    }
    
    .value-text h3 {
        font-size: 1.75rem;
    }
    
    .value-text p {
        font-size: 1.1rem;
    }
    
    .story-section {
        padding: 2rem;
    }
    
    .story-content p {
        font-size: 1.1rem;
    }
    
    .values-header h2 {
        font-size: 2rem;
    }
    
    .contact-header h2 {
        font-size: 2rem;
    }
    
    .contact-form {
        padding: 2rem 1.5rem;
    }
    
    .chat-messages {
        height: 300px;
    }
    
    .message-box {
        max-width: 90%;
    }
    
    .chat-input-container {
        flex-direction: column;
    }
    
    .btn-send {
        width: 100%;
    }
    
    .featured-content {
        grid-template-columns: 1fr;
    }
    
    .featured-text h2 {
        font-size: 2rem;
    }
    
    .featured-text .subtitle {
        font-size: 1.25rem;
    }
    
    .coming-soon-grid {
        grid-template-columns: 1fr;
    }
    
    main {
        padding: 2rem 1rem;
    }
}

@media (max-width: 600px) {
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .hero-text h2 {
        font-size: 2rem;
    }
    
    .hero-text p {
        font-size: 1.1rem;
    }
    
    .section-header h2 {
        font-size: 1.75rem;
    }
    
    .section-header p {
        font-size: 1.1rem;
    }
    
    .feature-content h3 {
        font-size: 1.5rem;
    }
    
    .cta-card h2 {
        font-size: 1.75rem;
    }
    
    .cta-card p {
        font-size: 1.1rem;
    }
    
    .featured-text {
        padding: 2rem;
    }
}

/* ============================================
   UTILITY CLASSES
   ============================================ */

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

.gap-4 {
    gap: 1rem;
}

.mb-6 {
    margin-bottom: 1.5rem;
}

.mb-8 {
    margin-bottom: 2rem;
}

.mb-12 {
    margin-bottom: 3rem;
}

/* ============================================
   MENU CLASSES
   ============================================ */

.nav-links.show {
  display: flex;
  flex-direction: column;
  background-color: #2ab3b8;
  position: absolute;
  top: 70px;
  right: 20px;
  width: 200px;
  padding: 1rem;
  border-radius: 8px;
}
