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

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: #e2e8f0;
    background-color: #17212F;
    overflow-x: hidden;
}

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

/* Ticker Styles */
.ticker-container {
    background: none;
    color: white;
    padding: 8px 0;
    overflow: hidden;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    height: 48px;
}

.ticker-logo {
    position: relative;
    z-index: 2;
    background: #17212F;
    height: 48px;
    min-width: 340px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 45px;
    letter-spacing: 2px;
    font-family: 'Jost', Arial, Helvetica, sans-serif !important;
    color: #3b82f6;
    transition: font-size 0.3s ease;
}

.ticker-wrapper {
    flex: 1;
    overflow: hidden;
    position: relative;
    height: 48px;
    display: flex;
    align-items: center;
}

.ticker-content {
    display: flex;
    animation: ticker 54s linear infinite;
    white-space: nowrap;
    align-items: center;
    height: 48px;
}

.ticker-content span {
    padding-right: 100px;
    font-size: 14px;
}

.ticker-separator {
    color: #fff;
    opacity: 0.5;
    font-size: 18px;
    margin: 0 24px;
    align-self: center;
}

@keyframes ticker {
    0% { transform: translateX(100%); }
    100% { transform: translateX(-100%); }
}

/* Hero Section */
.hero {
    padding: 40px 0;
    position: relative;
    overflow: hidden;
    min-height: 520px;
    width: 100%;
    z-index: 1;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(to bottom, rgba(24, 38, 54, 0.7), transparent);
    z-index: 2;
}

.hero .container, .hero-content, .hero-text, .hero-visual {
    position: relative;
    z-index: 3;
}

.hero-subtitle {
    color: #3b82f6;
    font-weight: 600;
    font-size: 16px;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.hero-title {
    font-size: 48px;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 30px;
    color: #f1f5f9;
}

.hero-title .highlight {
    color: #3b82f6;
    position: relative;
}


.hero-visual {
    position: relative;
}

.hero-image-container {
    position: relative;
    height: 500px;
}

.hero-image {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
}

.hero-image:hover {
    transform: translateY(-5px);
}

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

.main-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 70%;
    height: 70%;
    z-index: 2;
}

.secondary-image {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 50%;
    height: 50%;
    z-index: 3;
}


/* Section Styles */
.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-tag {
    display: none !important;
}

.section-title {
    font-size: 40px;
    font-weight: 700;
    line-height: 1.3;
    color: #e8b730;
}

/* Services Section */
.services {
    padding: 100px 0;
    background: url('pic/black and grey and white high quality pgoto.jpg') center center/cover no-repeat;
    position: relative;
    z-index: 1;
}

.services::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(to bottom, rgba(15, 28, 37, 0.8), transparent);
    z-index: 2;
}

.services > .container, .services-grid, .service-card {
    position: relative;
    z-index: 3;
}

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

.service-card {
    background: rgba(34, 47, 73, 0.6);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(59, 130, 246, 0.1);
    padding: 40px 30px;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
    border-color: rgba(59, 130, 246, 0.3);
}

.service-icon {
    width: 80px;
    height: 80px;
    background: transparent;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    color: white;
    font-size: 32px;
    position: relative;
}

.service-icon i {
    position: relative;
    z-index: 2;
    background: linear-gradient(135deg, #1e3a8a, #3b82f6);
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-icon lord-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120px !important;
    height: 120px !important;
    z-index: 1;
}

.service-card h3 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 15px;
    color: #f1f5f9;
}

.service-card p {
    color: #94a3b8;
    line-height: 1.6;
    font-size: 16px;
}

/* Why Choose Section */
.why-choose {
    padding: 100px 0;
    background: linear-gradient(135deg, #1a2332 0%, #0F1C25 100%);
}

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

.feature-card {
    background: rgba(26, 35, 50, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(16, 185, 129, 0.1);
    padding: 40px 30px;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
    border-color: rgba(16, 185, 129, 0.3);
}

.feature-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #10b981, #34d399);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    color: white;
    font-size: 32px;
}

.feature-card h3 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 15px;
    color: #f1f5f9;
}

.feature-card p {
    color: #94a3b8;
    line-height: 1.6;
    font-size: 16px;
}


/* Gallery Section */
.gallery-section {
    padding: 50px 0;
    background: #0F1C25;
}

.gallery-header {
    margin-bottom: 60px;
    align-items: center;
}

.gallery-info .section-title {
    text-align: center;
    margin-bottom: 20px;
}

.instagram-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #e1306c;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    transition: color 0.3s ease;
}

.instagram-link:hover {
    color: #c13584;
}

/* Responsive Masonry Brick Wall Grid */
.masonry-brickwall {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: 16px;
    width: 100%;
    margin: 0 auto;
    padding: 8px 0 24px 0;
    box-sizing: border-box;
}

.masonry-tile {
    background: #f7f7f7;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.07);
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 1/1;
    transition: box-shadow 0.2s;
}

.masonry-tile img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Brick wall effect: different tile sizes */
.masonry-tile.size-1x2 { grid-row: span 2; }
.masonry-tile.size-2x1 { grid-column: span 2; }
.masonry-tile.size-2x2 { grid-column: span 2; grid-row: span 2; }

@media (max-width: 900px) {
    .masonry-brickwall {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 901px) {
    .masonry-brickwall {
        display: grid;
        grid-template-columns: repeat(8, 1fr);
        gap: 16px;
        width: 100%;
        margin: 0 auto;
        padding: 8px 0 24px 0;
        box-sizing: border-box;
    }
    .masonry-tile {
        background: #f7f7f7;
        border-radius: 12px;
        overflow: hidden;
        box-shadow: 0 2px 8px rgba(0,0,0,0.07);
        display: flex;
        align-items: center;
        justify-content: center;
        aspect-ratio: 1/1;
        transition: box-shadow 0.2s;
    }
    .masonry-tile img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
    }
    .masonry-tile.size-1x2 { grid-row: span 2; }
    .masonry-tile.size-2x1 { grid-column: span 2; }
    .masonry-tile.size-2x2 { grid-column: span 2; grid-row: span 2; }
}

@media (max-width: 600px) {
    .masonry-brickwall {
        margin-left: 0;
        margin-right: 0;
        width: 100%;
        box-sizing: border-box;
        grid-template-columns: 1fr;
        gap: 8px;
    }
    .masonry-tile {
        aspect-ratio: 1/1;
    }
    /* First tile: large */
    .masonry-tile:nth-child(1) {
        aspect-ratio: 1/1;
        height: auto;
    }
    /* Second tile: double height */
    .masonry-tile:nth-child(2) {
        aspect-ratio: 1/2;
        height: auto;
    }
    /* Third tile: large */
    .masonry-tile:nth-child(3) {
        aspect-ratio: 1/1;
        height: auto;
    }
    /* Fourth tile: double height */
    .masonry-tile:nth-child(4) {
        aspect-ratio: 1/2;
        height: auto;
    }
    /* Fifth tile: double height */
    .masonry-tile:nth-child(5) {
        aspect-ratio: 1/2;
        height: auto;
    }
    /* Sixth tile: large */
    .masonry-tile:nth-child(6) {
        aspect-ratio: 1/1;
        height: auto;
    }
    /* Hide tiles after the 6th */
    .masonry-tile:nth-child(n+7) {
        display: none;
    }
    /* Reset any existing size classes */
    .masonry-tile.size-1x2,
    .masonry-tile.size-2x1,
    .masonry-tile.size-2x2 {
        grid-column: span 1;
        grid-row: span 1;
    }
}


@media (max-width: 400px) {
    .masonry-brickwall {
        grid-template-columns: repeat(2, 1fr);
        gap: 4px;
    }
}

/* Map Section */
.map-section {
    padding: 0;
    margin: 0;
    background: none;
}

.map-image {
    width: 100%;
    height: auto;
    display: block;
    border: none;
    margin: 0;
    padding: 0;
}

/* Footer */
.footer {
    background: url('pic/green-blue-wide-bg.jpg') center center/cover no-repeat, #0a1419;
    color: white;
    padding: 60px 0 30px;
    position: relative;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1;
}

.footer .container,
.footer-content,
.footer-info,
.footer-contact,
.footer-bottom {
    position: relative;
    z-index: 2;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-info h3 {
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 15px;
    color: #F58127;
}

.footer-info p {
    color: #F58127;
    font-size: 16px;
}

.footer-contact h4 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 20px;
    color: #F58127;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.contact-item i {
    color: #F58127;
    font-size: 18px;
}

.contact-item a {
    color: #F58127;
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-item a:hover {
    color: white;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid #334155;
    color: #94a3b8;
}

/* Floating Messenger Button */
.telegram-float {
    position: fixed;
    right: 32px;
    bottom: 32px;
    width: 112px;
    height: 112px;
    background: #0F1C25;
    color: #fff;
    border-radius: 50%;
    box-shadow: none;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1200;
    text-decoration: none;
    overflow: hidden;
    transition: box-shadow 0.2s;
}

/* Load More Button */
.load-more-btn {
    display: block;
    margin: 24px auto 0 auto;
    padding: 12px 24px;
    background-color: #3b82f6;
    color: white;
    font-size: 16px;
    font-weight: 700;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
    width: fit-content;
    max-width: 90%;
}

.load-more-btn:hover {
    background-color: #2563eb;
    box-shadow: 0 6px 16px rgba(37, 99, 235, 0.6);
}

@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
    
    .ticker-container {
        padding: 6px 0;
    }
    
    .ticker-logo {
        font-size: 32px;
        min-width: 280px;
        letter-spacing: 1px;
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }
    
    .hero-title {
        font-size: 32px;
    }
    
    .hero-image-container {
        height: 400px;
    }
    
    .hero-contact-card {
        position: static;
        transform: none;
        margin-top: 20px;
        justify-content: center;
    }
    
    .services-grid,
    .features-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .gallery-header {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .gallery-controls {
        text-align: center;
    }
    
    .masonry-brickwall {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }
    .masonry-tile {
        aspect-ratio: 1/1;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .section-title {
        font-size: 28px;
    }
    
    .ticker-content span {
        font-size: 12px;
        padding-right: 50px;
    }
    
    .telegram-float {
        bottom: 20px;
        right: 20px;
        width: 80px;
        height: 80px;
        font-size: 32px;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 60px 0;
    }
    
    .hero-title {
        font-size: 28px;
    }
    
    .services,
    .why-choose,
    .gallery-section,
    .video-section {
        padding: 80px 0;
    }
    
    .masonry-brickwall {
        grid-template-columns: repeat(2, 1fr);
        gap: 4px;
    }
    .masonry-tile {
        aspect-ratio: 1/1;
    }
    
    .telegram-float {
        width: 70px;
        height: 70px;
        font-size: 28px;
    }
    
    .ticker-logo {
        font-size: 24px;
        min-width: 200px;
        letter-spacing: 0.5px;
    }
}
