/* ========================================
   CUSTOM SECTIONS STYLES - NO CONFLICTS
   For: hero, about, technologies, services, faq
   ======================================== */

/* === GENERAL UTILITIES === */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 3rem;
    color: #1a1a1a;
    position: relative;
}

.section-title::after {
    content: '';
    width: 80px;
    height: 4px;
    background: #00d4d4;
    display: block;
    margin: 15px auto 0;
    border-radius: 2px;
}

/* === HERO-ABOUT WRAPPER === */
.hero-about-wrapper {
    background: linear-gradient(135deg, #f5fefe, #ebffff);
    color: #333;
    padding: 120px 0 80px;
    position: relative;
    overflow: hidden;
}

.hero-section {
    text-align: center;
    margin-bottom: 80px;
}

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

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    margin-top: 2rem;
}

.about-text {
    text-align: left;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" preserveAspectRatio="none"><path d="M0,0 L100,30 L100,100 L0,100 Z" fill="rgba(243,156,18,0.1)"/></svg>') top left / 100% 100%;
    pointer-events: none;
}

.hero .container {
    position: relative;
    z-index: 2;
}

.hero h1,
.hero-section h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    color: #ff6b35 !important;
    line-height: 1.2;
}

.hero p {
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto 2rem;
    color: #555;
    line-height: 1.7;
}

.btn-primary {
    display: inline-block;
    background: #f39c12;
    color: white;
    padding: 14px 32px;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(243, 156, 18, 0.3);
}

.btn-primary:hover {
    background: #e67e22;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(243, 156, 18, 0.4);
}

.tech-badge {
    margin-top: 2.5rem;
    font-size: 1.1rem;
    font-weight: 500;
}

.tech-badge i {
    font-size: 1.4rem;
    margin: 0 8px;
    vertical-align: middle;
}

/* === ABOUT SECTION === */
.about {
    padding: 100px 0;
    background: #f8f9fa;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-text h3 {
    font-size: 2rem;
    color: #00d4d4;
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.about-text p {
    margin-bottom: 1.2rem;
    line-height: 1.8;
    color: #555;
    font-size: 1.05rem;
}

.about-image-placeholder {
    background: #e9ecef;
    border: 2px dashed #ced4da;
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    font-family: monospace;
    color: #6c757d;
    font-size: 0.9rem;
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.about-image-placeholder code {
    background: #f1f3f5;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.85rem;
    margin-top: 10px;
    display: inline-block;
}

/* === TECHNOLOGIES SECTION === */
.technologies {
    padding: 100px 0;
    background: white;
}

.tech-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 1.8rem;
    margin-top: 2rem;
}

.tech-item {
    text-align: center;
    padding: 1.5rem;
    border-radius: 16px;
    background: #f8f9fa;
    transition: all 0.3s ease;
    border: 1px solid #eee;
}

.tech-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 25px rgba(0,0,0,0.08);
    background: white;
    border-color: #00d4d4;
}

.tech-item i {
    font-size: 2.5rem;
    margin-bottom: 0.8rem;
    display: block;
}

.tech-item h4 {
    font-size: 1rem;
    font-weight: 600;
    color: #333;
    margin: 0;
}

/* Official brand colors for technology icons */
.fab.fa-html5 { color: #e34f26; }
.fab.fa-css3-alt { color: #1572b6; }
.fab.fa-js-square { color: #f7df1e; }
.fab.fa-react { color: #61dafb; }
.fas.fa-gem { color: #007acc; }
.fab.fa-node-js { color: #339933; }
.fab.fa-python { color: #3776ab; }
.fas.fa-database { color: #336791; }
.fab.fa-php { color: #777bb4; }
.fas.fa-robot { color: #ff6f00; }
.fas.fa-brain { color: #ff6f00; }
.fab.fa-android { color: #3ddc84; }
.fab.fa-apple { color: #000000; }
.fab.fa-git-alt { color: #f05032; }
.fab.fa-docker { color: #2496ed; }
.fab.fa-aws { color: #ff9900; }
.fab.fa-figma { color: #f24e1e; }
.fas.fa-leaf { color: #47a248; }
.fas.fa-fire { color: #ffca28; }
.teal { color: #008080; }

/* === SERVICES OVERVIEW === */
.services-overview {
    padding: 100px 0;
    background: #f0f7f7;
}

.services-list {
    list-style: none;
    padding: 0;
    max-width: 900px;
    margin: 0 auto;
}

.services-list li {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1.8rem;
    font-size: 1.1rem;
    line-height: 1.7;
}

.services-list i {
    font-size: 1.5rem;
    margin-right: 1rem;
    color: #00d4d4;
    margin-top: 0.2rem;
}

.services-list strong {
    color: #1a1a1a;
    font-weight: 600;
    display: block;
    margin-bottom: 0.3rem;
}

/* === FAQ SECTION === */
.faq {
    padding: 100px 0;
    background: white;
}

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

.faq-item {
    margin-bottom: 1.5rem;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    overflow: hidden;
    background: #fafafa;
    transition: all 0.3s ease;
}

.faq-item:hover {
    border-color: #00d4d4;
    box-shadow: 0 5px 15px rgba(0,212,212,0.1);
}

.faq-question {
    padding: 1.5rem;
    font-weight: 600;
    font-size: 1.15rem;
    cursor: pointer;
    background: white;
    color: #008080;
    position: relative;
    transition: background 0.3s ease;
}

.faq-question::after {
    content: '+';
    position: absolute;
    right: 1.5rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5rem;
    color: #008080;
    transition: transform 0.3s ease;
}

.faq-item.active .faq-question::after {
    content: '−';
}

.faq-answer {
    padding: 0 1.5rem;
    max-height: 0;
    overflow: hidden;
    transition: all 0.4s ease;
    background: linear-gradient(135deg, #f5fefe, #ebffff);
}

.faq-answer p {
    margin: 0;
    padding: 1.5rem 0;
    color: #555;
    line-height: 1.8;
}

.faq-item.active .faq-answer {
    max-height: 500px;
    padding: 0 1.5rem 1.5rem;
}

.faq-question:hover {
    background: #f8f9fa;
}

.faq-item.active .faq-question {
    background: #f0f7f7;
    border-bottom: 1px solid #e0e0e0;
}

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

/* Large tablets and small desktops */
@media (max-width: 1199px) {
    .hero h1 { font-size: 3.2rem; }
    .tech-grid { grid-template-columns: repeat(5, 1fr); }
    .container { padding: 0 25px; }
}

/* Tablets */
@media (max-width: 992px) {
    .hero { padding: 100px 0 70px; }
    .hero h1 { font-size: 2.8rem; line-height: 1.1; }
    .hero p { font-size: 1.1rem; }
    .about-content { 
        grid-template-columns: 1fr; 
        gap: 3rem;
        text-align: center;
    }
    .about-image-placeholder { min-height: 250px; }
    .tech-grid { grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
    .section-title { font-size: 2.2rem; }
    .services-list li { 
        padding: 1rem;
        border-radius: 8px;
        background: rgba(255, 255, 255, 0.8);
        margin-bottom: 1.5rem;
    }
}

/* Mobile landscape and small tablets */
@media (max-width: 768px) {
    .hero { padding: 90px 0 60px; }
    .hero h1 { font-size: 2.4rem; }
    .hero p { font-size: 1.05rem; margin-bottom: 2.5rem; }
    .btn-primary { 
        padding: 16px 32px; 
        font-size: 1rem;
        min-height: 48px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }
    .section-title { font-size: 2rem; margin-bottom: 2.5rem; }
    .tech-grid { 
        grid-template-columns: repeat(3, 1fr); 
        gap: 1.2rem; 
    }
    .tech-item {
        padding: 1.2rem;
        min-height: 120px;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }
    .tech-item i { font-size: 2.2rem; }
    .tech-item h4 { font-size: 0.9rem; }
    .services-list li { 
        font-size: 1rem; 
        flex-direction: column; 
        align-items: center; 
        text-align: center;
        padding: 1.5rem;
        background: white;
        border-radius: 12px;
        box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    }
    .services-list i { 
        margin-right: 0; 
        margin-bottom: 0.8rem;
        font-size: 1.8rem;
    }
    .services-overview { padding: 80px 0; }
    .about { padding: 80px 0; }
    .technologies { padding: 80px 0; }
    .faq { padding: 80px 0; }
    .faq-question { 
        font-size: 1.05rem;
        padding: 1.3rem;
        min-height: 48px;
        display: flex;
        align-items: center;
    }
    .faq-question::after { 
        right: 1.3rem; 
        font-size: 1.4rem;
        min-width: 24px;
        text-align: center;
    }
}

/* Mobile portrait */
@media (max-width: 576px) {
    .hero { padding: 80px 0 50px; }
    .hero h1 { 
        font-size: 2rem; 
        line-height: 1.2;
        margin-bottom: 1.2rem;
    }
    .hero p { 
        font-size: 1rem; 
        margin-bottom: 2rem;
        line-height: 1.6;
    }
    .btn-primary { 
        padding: 14px 28px; 
        font-size: 0.95rem;
        width: 100%;
        max-width: 280px;
    }
    .section-title { 
        font-size: 1.8rem; 
        margin-bottom: 2rem;
    }
    .section-title::after {
        width: 60px;
        height: 3px;
    }
    .tech-grid { 
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    .tech-item {
        padding: 1rem;
        min-height: 100px;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        text-align: center;
    }
    .tech-item i { font-size: 2rem; margin-bottom: 0.6rem; }
    .tech-item svg { margin-bottom: 0.6rem; }
    .tech-item h4 { font-size: 0.85rem; margin: 0; }
    .about-text h3 { font-size: 1.6rem; }
    .about-text p { font-size: 1rem; }
    .services-list li { 
        font-size: 0.95rem;
        padding: 1.2rem;
        margin-bottom: 1.2rem;
    }
    .services-list i { 
        font-size: 1.6rem;
        margin-bottom: 0.6rem;
    }
    .faq-question { 
        font-size: 1rem; 
        padding: 1.2rem;
        line-height: 1.4;
    }
    .faq-question::after { 
        right: 1.2rem; 
        font-size: 1.3rem;
    }
    .faq-answer { padding: 0 1.2rem; }
    .faq-item.active .faq-answer { padding: 0 1.2rem 1.2rem; }
    .faq-answer p { font-size: 0.95rem; line-height: 1.7; }
    .services-overview { padding: 60px 0; }
    .about { padding: 60px 0; }
    .technologies { padding: 60px 0; }
    .faq { padding: 60px 0; }
    .container { padding: 0 15px; }
}

/* Extra small devices */
@media (max-width: 480px) {
    .hero h1 { font-size: 1.8rem; }
    .hero p { font-size: 0.95rem; }
    .btn-primary { 
        padding: 12px 24px;
        font-size: 0.9rem;
    }
    .section-title { font-size: 1.6rem; }
    .tech-grid { gap: 0.8rem; }
    .tech-item { padding: 0.8rem; }
    .tech-item i { font-size: 1.8rem; }
    .tech-item h4 { font-size: 0.8rem; }
    .services-list li { padding: 1rem; }
    .faq-question { padding: 1rem; font-size: 0.95rem; }
    .faq-answer p { font-size: 0.9rem; }
}

/* ========================================
   MOBILE-SPECIFIC ENHANCEMENTS
   ======================================== */

@media (max-width: 768px) {
    /* Improve touch targets */
    button, .btn, a, input, textarea, select {
        min-height: 44px;
        min-width: 44px;
    }
    
    /* Better spacing for mobile */
    .hero .container,
    .about .container,
    .technologies .container,
    .services-overview .container,
    .faq .container {
        padding-left: 20px;
        padding-right: 20px;
    }
    
    /* Optimize images for mobile */
    .about-image-placeholder {
        margin-top: 2rem;
        min-height: 200px;
    }
    
    /* Better mobile typography */
    .about-text h3 {
        text-align: center;
        margin-bottom: 1.2rem;
    }
    
    .services-list {
        padding: 0;
    }
    
    /* Mobile-friendly FAQ */
    .faq-container {
        padding: 0;
    }
    
    .faq-item {
        margin-bottom: 1rem;
        border-radius: 8px;
    }
}

@media (max-width: 576px) {
    .hero .container,
    .about .container,
    .technologies .container,
    .services-overview .container,
    .faq .container {
        padding-left: 15px;
        padding-right: 15px;
    }
}