/* ========================
   TETECARE Styles
   Sky Blue Theme
   ======================== */

:root {
    --primary-color: #4A90E2;
    --primary-dark: #2E5F8E;
    --primary-light: #87CEEB;
    --secondary-color: #5DADE2;
    --accent-color: #3498DB;
    --text-dark: #2C3E50;
    --text-light: #7F8C8D;
    --bg-light: #F8FBFF;
    --bg-white: #FFFFFF;
    --border-color: #E3F2FD;
    --success-color: #27AE60;
    --gradient-primary: linear-gradient(135deg, #4A90E2 0%, #5DADE2 100%);
    --gradient-hero: linear-gradient(135deg, #4A90E2 0%, #87CEEB 100%);
    --shadow-sm: 0 2px 4px rgba(74, 144, 226, 0.1);
    --shadow-md: 0 4px 6px rgba(74, 144, 226, 0.15);
    --shadow-lg: 0 10px 30px rgba(74, 144, 226, 0.2);
}

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg-white);
}

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

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

h1 { font-size: 3rem; }
h2 { font-size: 2.5rem; }
h3 { font-size: 2rem; }
h4 { font-size: 1.5rem; }

p {
    margin-bottom: 1rem;
    color: var(--text-light);
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: all 0.3s ease;
}

a:hover {
    color: var(--primary-dark);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ========================
   Navigation
   ======================== */

.navbar {
    background: var(--bg-white);
    box-shadow: var(--shadow-md);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 1rem 0;
}

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

.logo a {
    font-size: 1.75rem;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav-menu a {
    color: var(--text-dark);
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.nav-menu a:hover,
.nav-menu a.active {
    background: var(--gradient-primary);
    color: var(--bg-white);
}

.mobile-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.mobile-toggle span {
    width: 25px;
    height: 3px;
    background: var(--primary-color);
    margin: 3px 0;
    border-radius: 3px;
    transition: 0.3s;
}

/* ========================
   Buttons
   ======================== */

.btn {
    display: inline-block;
    padding: 0.875rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    border: none;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.btn-primary {
    background: var(--gradient-primary);
    color: var(--bg-white);
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    color: var(--bg-white);
}

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

.btn-secondary:hover {
    background: var(--primary-color);
    color: var(--bg-white);
}

.btn-small {
    padding: 0.5rem 1.5rem;
    font-size: 0.875rem;
}

.btn-large {
    padding: 1rem 2.5rem;
    font-size: 1.125rem;
}

/* ========================
   Hero Section
   ======================== */

.hero {
    background: var(--gradient-hero);
    color: var(--bg-white);
    padding: 120px 0;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><circle cx="50" cy="50" r="40" fill="none" stroke="white" stroke-opacity="0.05" stroke-width="2"/></svg>');
    background-size: 100px 100px;
}

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

.hero h1 {
    color: var(--bg-white);
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--bg-white);
    margin-bottom: 2.5rem;
    opacity: 0.95;
}

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

/* ========================
   Sections
   ======================== */

section {
    padding: 80px 0;
}

.section-subtitle {
    text-align: center;
    font-size: 1.125rem;
    color: var(--text-light);
    max-width: 700px;
    margin: 0 auto 3rem;
}

.page-header {
    background: var(--gradient-primary);
    color: var(--bg-white);
    padding: 80px 0;
    text-align: center;
}

.page-header h1 {
    color: var(--bg-white);
    margin-bottom: 1rem;
}

.page-header p {
    color: var(--bg-white);
    font-size: 1.25rem;
    opacity: 0.95;
}

section h2 {
    text-align: center;
    margin-bottom: 1rem;
    color: var(--primary-dark);
}

/* ========================
   Services
   ======================== */

.services-overview {
    background: var(--bg-light);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.service-card {
    background: var(--bg-white);
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-light);
}

.service-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.service-card h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.service-card p {
    font-size: 0.95rem;
}

.cta-center {
    text-align: center;
    margin-top: 2rem;
}

/* Service Detail Pages */
.services-detail {
    background: var(--bg-light);
}

.service-detail-card {
    background: var(--bg-white);
    padding: 3rem;
    border-radius: 15px;
    margin-bottom: 3rem;
    box-shadow: var(--shadow-md);
}

.service-detail-icon {
    font-size: 4rem;
    margin-bottom: 1.5rem;
}

.service-intro {
    font-size: 1.125rem;
    color: var(--text-dark);
    margin-bottom: 2rem;
}

.service-detail-card h3 {
    color: var(--primary-color);
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.service-detail-card ul {
    margin-left: 1.5rem;
    margin-bottom: 1.5rem;
}

.service-detail-card li {
    margin-bottom: 0.75rem;
    color: var(--text-light);
}

.service-cta {
    margin-top: 2rem;
    text-align: center;
}

/* ========================
   Portfolio
   ======================== */

.featured-portfolio,
.portfolio-section {
    background: var(--bg-white);
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
    margin-bottom: 3rem;
}

.portfolio-item {
    background: var(--bg-white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
}

.portfolio-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.portfolio-image {
    overflow: hidden;
    height: 250px;
    background: var(--bg-light);
}

.portfolio-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.portfolio-item:hover .portfolio-image img {
    transform: scale(1.05);
}

.portfolio-content {
    padding: 1.5rem;
}

.portfolio-content h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.portfolio-content p {
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

/* Portfolio Case Studies */
.portfolio-case-study {
    background: var(--bg-white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    margin-bottom: 4rem;
}

.case-study-header {
    background: var(--gradient-primary);
    padding: 3rem;
    color: var(--bg-white);
}

.case-study-image {
    margin-bottom: 2rem;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.case-study-title h2 {
    color: var(--bg-white);
    margin-bottom: 0.5rem;
    text-align: left;
}

.project-type {
    color: var(--bg-white);
    opacity: 0.9;
    font-size: 1rem;
    margin-bottom: 1.5rem;
}

.case-study-content {
    padding: 3rem;
}

.case-study-content h3 {
    color: var(--primary-color);
    margin-top: 2.5rem;
    margin-bottom: 1rem;
}

.case-study-content p,
.case-study-content ul {
    margin-bottom: 1.5rem;
}

.case-study-content li {
    margin-bottom: 0.75rem;
    margin-left: 1.5rem;
}

.results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.result-item {
    text-align: center;
    padding: 2rem;
    background: var(--bg-light);
    border-radius: 10px;
    border: 2px solid var(--border-color);
}

.result-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

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

.tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1rem;
}

.tech-tag {
    background: var(--primary-light);
    color: var(--bg-white);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 500;
}

/* Portfolio iframe container */
.portfolio-iframe-container {
    width: 100%;
    height: 600px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    margin: 2rem 0;
    border: 3px solid var(--border-color);
}

.portfolio-iframe-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* ========================
   Testimonials
   ======================== */

.testimonials {
    background: var(--bg-light);
}

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

.testimonial-card {
    background: var(--bg-white);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: var(--shadow-md);
    border-left: 4px solid var(--primary-color);
}

.testimonial-quote {
    font-size: 1.125rem;
    font-style: italic;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.testimonial-author {
    font-weight: 600;
    color: var(--primary-color);
}

/* ========================
   About Page
   ======================== */

.about-overview {
    background: var(--bg-white);
}

.large-text {
    font-size: 1.25rem;
    color: var(--text-dark);
    text-align: center;
    margin-bottom: 2rem;
}

.about-content {
    max-width: 900px;
    margin: 0 auto 3rem;
    font-size: 1.05rem;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.value-card {
    text-align: center;
    padding: 2rem;
    background: var(--bg-light);
    border-radius: 15px;
    transition: all 0.3s ease;
}

.value-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.value-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.value-card h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

/* Consultant Spotlight */
.consultant-spotlight {
    background: var(--bg-light);
}

.consultant-profile {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 3rem;
    align-items: start;
    max-width: 1100px;
    margin: 0 auto;
}

.consultant-image {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.consultant-info h3 {
    color: var(--primary-color);
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.consultant-title {
    font-size: 1.125rem;
    color: var(--text-light);
    margin-bottom: 2rem;
}

.consultant-bio {
    line-height: 1.8;
}

.consultant-bio h4 {
    color: var(--primary-color);
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.expertise-list {
    margin-left: 1.5rem;
}

.expertise-list li {
    margin-bottom: 1rem;
}

.expertise-list strong {
    color: var(--primary-color);
}

.consultant-cta {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.why-choose-us {
    background: var(--bg-white);
}

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

.reason-card {
    padding: 2rem;
    background: var(--bg-light);
    border-radius: 15px;
    border-left: 4px solid var(--primary-color);
}

.reason-card h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.industries {
    background: var(--bg-light);
}

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

.industry-card {
    padding: 2rem;
    background: var(--bg-white);
    border-radius: 15px;
    box-shadow: var(--shadow-sm);
    text-align: center;
    transition: all 0.3s ease;
}

.industry-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.industry-card h3 {
    color: var(--primary-color);
    margin-bottom: 0.75rem;
}

/* ========================
   Contact Page
   ======================== */

.contact-section {
    background: var(--bg-light);
}

.contact-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
}

.contact-form-container {
    background: var(--bg-white);
    padding: 3rem;
    border-radius: 15px;
    box-shadow: var(--shadow-md);
}

.contact-form-container h2 {
    text-align: left;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.contact-form-container > p {
    margin-bottom: 2rem;
}

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

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-dark);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.875rem;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.1);
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
    width: auto;
    cursor: pointer;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-info h2 {
    text-align: left;
    color: var(--primary-color);
}

.contact-info-card {
    background: var(--bg-white);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: var(--shadow-sm);
}

.contact-info-card.highlight {
    background: var(--gradient-primary);
    color: var(--bg-white);
}

.contact-info-card.highlight h3,
.contact-info-card.highlight p {
    color: var(--bg-white);
}

.contact-info-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.contact-info-card h3 {
    color: var(--primary-color);
    margin-bottom: 0.75rem;
    font-size: 1.25rem;
}

.contact-info-card p {
    margin-bottom: 0.5rem;
}

.small-text {
    font-size: 0.875rem;
    opacity: 0.8;
}

.office-hours {
    background: var(--bg-white);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: var(--shadow-sm);
}

.office-hours h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.office-hours ul {
    list-style: none;
    margin-bottom: 1rem;
}

.office-hours li {
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border-color);
}

.office-hours li:last-child {
    border-bottom: none;
}

.form-message {
    margin-top: 1rem;
    padding: 1rem;
    border-radius: 8px;
    display: none;
}

.form-message.success {
    display: block;
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.form-message.error {
    display: block;
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.faq-section {
    background: var(--bg-white);
}

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

.faq-item {
    padding: 2rem;
    background: var(--bg-light);
    border-radius: 15px;
    border-left: 4px solid var(--primary-color);
}

.faq-item h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.125rem;
}

.map-section {
    background: var(--bg-light);
}

.map-placeholder {
    margin-top: 2rem;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

/* ========================
   CTA Section
   ======================== */

.cta-section {
    background: var(--gradient-primary);
    color: var(--bg-white);
    text-align: center;
    padding: 80px 0;
}

.cta-section h2 {
    color: var(--bg-white);
    margin-bottom: 1rem;
}

.cta-section p {
    color: var(--bg-white);
    font-size: 1.25rem;
    margin-bottom: 2rem;
}

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

.cta-section .btn-primary {
    background: var(--bg-white);
    color: var(--primary-color);
}

.cta-section .btn-primary:hover {
    background: var(--primary-dark);
    color: var(--bg-white);
}

.cta-section .btn-secondary {
    background: transparent;
    border-color: var(--bg-white);
    color: var(--bg-white);
}

.cta-section .btn-secondary:hover {
    background: var(--bg-white);
    color: var(--primary-color);
}

/* ========================
   Footer
   ======================== */

.footer {
    background: var(--text-dark);
    color: var(--bg-white);
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-section h3,
.footer-section h4 {
    color: var(--bg-white);
    margin-bottom: 1.5rem;
}

.footer-section p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 1rem;
}

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

.footer-section li {
    margin-bottom: 0.75rem;
}

.footer-section a {
    color: rgba(255, 255, 255, 0.8);
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: var(--primary-light);
}

.social-links {
    margin-top: 1rem;
}

.social-links a {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: var(--primary-color);
    color: var(--bg-white);
    border-radius: 5px;
    margin-right: 0.5rem;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: var(--primary-light);
    transform: translateY(-2px);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.6);
    margin: 0;
}

/* ========================
   Responsive Design
   ======================== */

@media (max-width: 768px) {
    h1 { font-size: 2.25rem; }
    h2 { font-size: 2rem; }
    h3 { font-size: 1.5rem; }
    
    .navbar .container {
        position: relative;
    }
    
    .mobile-toggle {
        display: flex;
    }
    
    .nav-menu {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--bg-white);
        flex-direction: column;
        padding: 1rem;
        box-shadow: var(--shadow-md);
        display: none;
        gap: 0;
    }
    
    .nav-menu.active {
        display: flex;
    }
    
    .nav-menu li {
        width: 100%;
    }
    
    .nav-menu a {
        display: block;
        padding: 1rem;
    }
    
    .hero {
        padding: 80px 0;
    }
    
    .hero h1 {
        font-size: 2.25rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .hero-cta {
        flex-direction: column;
        align-items: stretch;
    }
    
    section {
        padding: 60px 0;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .portfolio-grid {
        grid-template-columns: 1fr;
    }
    
    .consultant-profile {
        grid-template-columns: 1fr;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .results-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .values-grid,
    .reasons-grid,
    .industries-grid,
    .faq-grid {
        grid-template-columns: 1fr;
    }
    
    .consultant-cta {
        flex-direction: column;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: stretch;
    }
    
    .portfolio-iframe-container {
        height: 400px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    h1 { font-size: 1.75rem; }
    h2 { font-size: 1.5rem; }
    
    .hero {
        padding: 60px 0;
    }
    
    .service-detail-card,
    .contact-form-container {
        padding: 1.5rem;
    }
    
    .case-study-header,
    .case-study-content {
        padding: 2rem 1.5rem;
    }
    
    .results-grid {
        grid-template-columns: 1fr;
    }
    
    .result-number {
        font-size: 2.5rem;
    }
}

/* ========================
   Animations
   ======================== */

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.6s ease-out;
}

/* ========================
   Utilities
   ======================== */

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

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
