/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
}

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

/* Typography */
h1, h2, h3 {
    font-family: 'Exo', sans-serif;
    font-weight: 600;
}

h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    text-align: center;
}

h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

p {
    font-family: 'Jost', sans-serif;
    font-size: 1rem;
    line-height: 1.6;
}

/* Hero Section */
.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.hero-gif {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    min-height: 100vh;
}

.background-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: white;
}

.hero-logo img {
    max-width: 300px;
    height: auto;
    margin-bottom: 3rem;
}

.animated-text-container {
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.animated-text {
    font-size: 2rem;
    font-weight: 600;
    font-family: 'Exo', sans-serif;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

.text-item {
    display: none;
    opacity: 0;
    transform: translateY(50px);
}

.text-item.active {
    display: block;
    opacity: 1;
    transform: translateY(0);
    animation: textSlideIn 1s ease-out;
}

.text-item.exit {
    animation: textSlideOut 1s ease-out;
}

/* Services Section */
.services-section {
    padding: 5rem 0;
    background: #f8f9fa;
}

.section-title {
    color: #2c3e50;
    margin-bottom: 3rem;
}

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

.service-block {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    cursor: pointer;
}

.service-block:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.service-block:nth-child(1) { background: linear-gradient(135deg, #fff8e1, #fff3c4); }
.service-block:nth-child(2) { background: linear-gradient(135deg, #fff3e0, #ffe0b2); }
.service-block:nth-child(3) { background: linear-gradient(135deg, #fce4ec, #f8bbd9); }
.service-block:nth-child(4) { background: linear-gradient(135deg, #f3e5f5, #e1bee7); }
.service-block:nth-child(5) { background: linear-gradient(135deg, #e3f2fd, #bbdefb); }
.service-block:nth-child(6) { background: linear-gradient(135deg, #e8f5e8, #c8e6c9); }
.service-block:nth-child(7) { background: linear-gradient(135deg, #fff0f3, #ffcdd2); }
.service-block:nth-child(8) { background: linear-gradient(135deg, #e0f2f1, #b2dfdb); }

.service-image {
    margin-bottom: 1.5rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

.service-circle-img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid rgba(0, 0, 0, 0.1);
}

.service-block h3 {
    color: #2c3e50;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.service-block p {
    color: #666;
    font-size: 0.9rem;
    line-height: 1.5;
}

.read-more {
    color: #2c3e50;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.5rem;
    cursor: pointer;
    transition: color 0.3s ease;
}

.read-more:hover {
    color: #3498db;
}

/* Tooltip */
.service-block::after {
    content: attr(data-tooltip);
    position: absolute;
    top: -40px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 8px 12px;
    border-radius: 5px;
    font-size: 0.8rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    white-space: nowrap;
}

.service-block:hover::after {
    opacity: 1;
}

/* Company Carousel Section */
.company-carousel-section {
    padding: 4rem 0;
    background: linear-gradient(135deg, #ad5389, #3c1053);
    color: white;
    overflow: hidden;
}

.company-carousel-section .section-title {
    color: white;
    margin-bottom: 3rem;
}

.carousel-container {
    overflow: hidden;
    position: relative;
}

.carousel-track {
    display: flex;
    animation: scrollLeft 20s linear infinite;
}

.carousel-item {
    min-width: 250px;
    text-align: center;
    padding: 0 1rem;
    flex-shrink: 0;
}

.company-logo {
    margin-bottom: 1rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

.company-logo img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid rgba(255, 255, 255, 0.3);
}

.carousel-item h4 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: white;
}

.carousel-item p {
    font-size: 0.9rem;
    color: #bdc3c7;
}

/* Footer */
.main-footer {
    background: #2c3e50;
    color: white;
    padding: 3rem 0 1rem;
}

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

.footer-logo img {
    max-width: 150px;
    height: auto;
    margin-bottom: 1rem;
}

.footer-info p {
    margin-bottom: 0.5rem;
    color: #bdc3c7;
}

.footer-section h4 {
    margin-bottom: 1rem;
    color: #3498db;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: #bdc3c7;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #3498db;
}

.contact-icons {
    display: flex;
    gap: 1rem;
}

.contact-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    text-decoration: none;
    transition: transform 0.3s ease;
}

.contact-icon:hover {
    transform: scale(1.1);
}

.contact-icon.whatsapp {
    background: #25d366;
    color: white;
}

.contact-icon.telegram {
    background: #0088cc;
    color: white;
}

.contact-icon.email {
    background: #ea4335;
    color: white;
}

.contact-icon.wechat {
    background: #1aad19;
    color: white;
}

/* Recognition Section */
.recognition-items {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.recognition-item {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.recognition-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.recognition-item span {
    color: #bdc3c7;
    font-size: 0.9rem;
    line-height: 1.3;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-section {
        min-height: 100vh;
        height: auto;
    }
    
    .hero-background {
        min-height: 100vh;
    }
    
    .hero-gif {
        min-height: 100vh;
        height: 100vh;
        object-fit: cover;
        object-position: center center;
    }
    
    .hero-logo img {
        max-width: 200px;
    }
    
    .animated-text {
        font-size: 1.5rem;
    }
    
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .service-block {
        padding: 1.5rem;
    }
    
    .service-image {
        font-size: 2rem;
    }
    
    .service-block h3 {
        font-size: 1rem;
    }
    
    .service-block p {
        font-size: 0.8rem;
    }
    
    .carousel-item {
        min-width: 200px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .contact-icons {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .hero-section {
        min-height: 100vh;
        height: 100vh;
    }
    
    .hero-background,
    .hero-gif {
        min-height: 100vh;
        height: 100vh;
        object-fit: cover;
        object-position: center center;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .animated-text {
        font-size: 1.2rem;
        line-height: 1.3;
    }
    
    .hero-content {
        padding: 0 1rem;
    }
    
    .animated-text-container {
        height: 80px;
    }
}

/* Portrait orientation specific fixes */
@media (orientation: portrait) and (max-width: 768px) {
    .hero-section {
        min-height: 100vh;
        height: 100vh;
    }
    
    .hero-background,
    .hero-gif {
        min-height: 100vh;
        height: 100vh;
        width: 100vw;
        object-fit: cover;
        object-position: center center;
    }
    
    .background-overlay {
        min-height: 100vh;
        height: 100vh;
    }
}

/* Service Page Styles */
.page-header {
    background: linear-gradient(135deg, #2c3e50, #34495e);
    color: white;
    padding: 140px 0 80px;
    text-align: center;
    margin-top: 0;
}

.page-header h1 {
    font-family: 'Exo', sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.page-header p {
    font-size: 1.2rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
}

.service-details {
    padding: 80px 0;
}

.service-overview {
    margin-bottom: 60px;
}

.service-overview h2 {
    font-family: 'Exo', sans-serif;
    font-size: 2rem;
    color: #2c3e50;
    margin-bottom: 1.5rem;
}

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

.feature-item {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    text-align: center;
    transition: transform 0.3s ease;
}

.feature-item:hover {
    transform: translateY(-5px);
}

.feature-item i {
    font-size: 2.5rem;
    color: #e74c3c;
    margin-bottom: 1rem;
}

.feature-item h3 {
    font-family: 'Jost', sans-serif;
    font-size: 1.2rem;
    color: #2c3e50;
    margin-bottom: 0.8rem;
}

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

.step {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 10px;
    text-align: center;
    position: relative;
}

.step-number {
    background: #e74c3c;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    margin: 0 auto 1rem;
}

.step h4 {
    font-family: 'Jost', sans-serif;
    color: #2c3e50;
    margin-bottom: 0.8rem;
}

.contact-cta {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: white;
    padding: 60px 0;
    text-align: center;
    margin-top: 60px;
}

.contact-cta h2 {
    font-family: 'Exo', sans-serif;
    margin-bottom: 1rem;
}

.cta-button {
    display: inline-block;
    background: white;
    color: #e74c3c;
    padding: 15px 30px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    margin-top: 1rem;
    transition: all 0.3s ease;
}

.cta-button:hover {
    background: #f8f9fa;
    transform: translateY(-2px);
}

/* Additional service page grids */
.plan-grid, .building-grid, .category-grid, .cert-grid, .license-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.plan-item, .building-item, .category-item, .cert-item, .license-item {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    border-left: 4px solid #e74c3c;
}

.plan-item h4, .building-item h4, .category-item h4, .cert-item h4, .license-item h4 {
    font-family: 'Jost', sans-serif;
    color: #2c3e50;
    margin-bottom: 0.8rem;
}

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

.requirement-item, .requirement-group {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
}

.requirement-group ul {
    margin-top: 1rem;
    padding-left: 1.5rem;
}

.requirement-group li {
    margin-bottom: 0.5rem;
}

.benefits-list, .support-items {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.benefit-item, .support-item {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    text-align: center;
}

.benefit-item i, .support-item i {
    font-size: 2rem;
    color: #e74c3c;
    margin-bottom: 1rem;
}

/* Service Page Styles */
.page-header {
    background: linear-gradient(135deg, #2c3e50, #34495e);
    color: white;
    padding: 140px 0 80px;
    text-align: center;
    margin-top: 0;
}

.page-header h1 {
    font-family: 'Exo', sans-serif;
    font-size: 3rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.page-header p {
    font-size: 1.2rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
}

.service-details {
    padding: 80px 0;
    background: #f8f9fa;
}

.service-overview {
    margin-bottom: 4rem;
}

.service-overview h2 {
    color: #2c3e50;
    margin-bottom: 2rem;
}

.service-features {
    margin-top: 3rem;
}

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

.feature-item {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    text-align: center;
    transition: transform 0.3s ease;
}

.feature-item:hover {
    transform: translateY(-5px);
}

.feature-item i {
    font-size: 3rem;
    color: #e74c3c;
    margin-bottom: 1rem;
}

.feature-item h3 {
    color: #2c3e50;
    margin-bottom: 1rem;
}

.service-process {
    margin-top: 4rem;
    padding: 4rem 0;
    background: white;
    border-radius: 15px;
}

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

.step {
    text-align: center;
    padding: 2rem;
}

.step-number {
    display: inline-block;
    width: 60px;
    height: 60px;
    background: #e74c3c;
    color: white;
    border-radius: 50%;
    line-height: 60px;
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 1rem;
}

.step h4 {
    color: #2c3e50;
    margin-bottom: 1rem;
}

.service-hero {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: white;
    padding: 120px 0 80px;
    text-align: center;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero-icon {
    font-size: 4rem;
    margin-bottom: 2rem;
}

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

.service-hero p {
    font-size: 1.3rem;
    opacity: 0.9;
}

.service-content {
    padding: 80px 0;
}

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

.main-content-area {
    background: white;
    padding: 3rem;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.main-content-area h2 {
    color: #2c3e50;
    margin-bottom: 2rem;
    text-align: left;
}

.main-content-area h3 {
    color: #e74c3c;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.service-list {
    list-style: none;
    padding: 0;
    margin: 2rem 0;
}

.service-list li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #eee;
}

.service-list li:last-child {
    border-bottom: none;
}

.service-list i {
    color: #27ae60;
    margin-right: 1rem;
}

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

.feature {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
}

.feature i {
    font-size: 2.5rem;
    color: #e74c3c;
    margin-bottom: 1rem;
}

.feature h4 {
    color: #2c3e50;
    margin-bottom: 1rem;
}

.building-types, .plan-types {
    margin-top: 3rem;
}

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

.building-item, .plan-item {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

.building-item h4, .plan-item h4 {
    color: #2c3e50;
    margin-bottom: 1rem;
}

.building-item i, .plan-item i {
    color: #e74c3c;
    margin-right: 0.5rem;
}

.application-process {
    background: #f8f9fa;
    padding: 4rem 0;
    margin-top: 4rem;
}

.application-cta {
    background: #e74c3c;
    color: white;
    padding: 4rem 0;
    text-align: center;
}

.cta-button {
    display: inline-block;
    background: white;
    color: #e74c3c;
    padding: 15px 30px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    margin-top: 2rem;
    transition: transform 0.3s ease;
}

.cta-button:hover {
    transform: translateY(-2px);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .page-header h1, .service-hero h1 {
        font-size: 2rem;
    }
    
    .feature-grid, .process-steps, .service-features {
        grid-template-columns: 1fr;
    }
    
    .main-content-area {
        padding: 2rem;
    }
    
    .building-grid, .plan-grid {
        grid-template-columns: 1fr;
    }
}
