/* ========================================
   HOME PAGE SPECIFIC STYLES
   ======================================== */

/* Hero Slider */
.hero-slider {
    position: relative;
    height: 100vh;
    min-height: 600px;
    overflow: hidden;
}

.slider-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 1s ease-in-out, visibility 1s ease-in-out;
}

.hero-slide.active {
    opacity: 1;
    visibility: visible;
    z-index: 2;
}

.slide-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    animation: kenburns 20s ease-out infinite;
}

@keyframes kenburns {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
    }
}

.slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(26, 58, 92, 0.85) 0%, rgba(26, 58, 92, 0.6) 100%);
    z-index: 1;
}

.slide-content {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-right: 5%;
}

.slide-text {
    max-width: 900px;
    text-align: left;
    color: var(--color-white);
    padding: 3rem;
    background: linear-gradient(90deg, rgba(26, 58, 92, 0.3) 0%, rgba(26, 58, 92, 0.7) 100%);
    border-radius: var(--radius-lg);
    backdrop-filter: blur(10px);
}

.slide-title {
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--color-white);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    opacity: 0;
    transform: translateY(30px);
}

.slide-subtitle {
    font-size: 2rem;
    font-weight: 400;
    margin-bottom: 1.5rem;
    color: var(--color-accent);
    opacity: 0;
    transform: translateY(30px);
}

.slide-description {
    font-size: 1.25rem;
    line-height: 1.8;
    margin-bottom: 2.5rem;
    color: rgba(255, 255, 255, 0.95);
    opacity: 0;
    transform: translateY(30px);
}

.slide-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: flex-start;
    opacity: 0;
    transform: translateY(30px);
}

.slide-buttons .btn {
    min-width: 220px;
    font-size: 1rem;
}

/* Slide Animations */
.hero-slide.active .animate-text {
    animation: slideInUp 0.8s ease-out forwards;
}

.hero-slide.active .animate-text-delay-1 {
    animation: slideInUp 0.8s ease-out 0.2s forwards;
}

.hero-slide.active .animate-text-delay-2 {
    animation: slideInUp 0.8s ease-out 0.4s forwards;
}

.hero-slide.active .animate-text-delay-3 {
    animation: slideInUp 0.8s ease-out 0.6s forwards;
}

@keyframes slideInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Slider Navigation */
.slider-nav {
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    transform: translateY(-50%);
    z-index: 10;
    display: flex;
    justify-content: space-between;
    padding: 0 2rem;
}

.slider-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.5);
    color: var(--color-white);
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

.slider-btn:hover {
    background: var(--color-primary);
    border-color: var(--color-primary);
    transform: scale(1.1);
}

.slider-btn:active {
    transform: scale(0.95);
}

/* Slider Dots */
.slider-dots {
    position: absolute;
    bottom: 3rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    gap: 1rem;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.dot:hover {
    background: rgba(255, 255, 255, 0.8);
    transform: scale(1.2);
}

.dot.active {
    background: var(--color-accent);
    border-color: var(--color-white);
    width: 40px;
    border-radius: 6px;
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    animation: fadeIn 1s ease-out 1s both;
}

.mouse {
    width: 30px;
    height: 50px;
    border: 2px solid var(--color-white);
    border-radius: 20px;
    position: relative;
    animation: bounce 2s infinite;
}

.mouse-wheel {
    width: 4px;
    height: 10px;
    background-color: var(--color-white);
    border-radius: 2px;
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    animation: scroll 2s infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(10px); }
}

@keyframes scroll {
    0% { opacity: 1; transform: translateX(-50%) translateY(0); }
    100% { opacity: 0; transform: translateX(-50%) translateY(20px); }
}

/* Stats Section */
.stats-section {
    background-color: var(--color-primary);
    color: var(--color-white);
    padding: 3rem 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 3rem;
}

.stat-item {
    text-align: center;
    padding: 2rem 1rem;
    transition: var(--transition-normal);
}

.stat-item:hover {
    transform: translateY(-10px);
}

.stat-icon {
    font-size: 3rem;
    color: var(--color-accent);
    margin-bottom: 1rem;
}

.stat-number {
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--color-white);
    margin-bottom: 0.5rem;
}

.stat-number::after {
    content: '+';
}

.stat-label {
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 400;
}

/* Services Section */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2.5rem;
}

.service-card {
    background-color: var(--color-white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-normal);
}

.service-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-10px);
}

.service-image {
    position: relative;
    height: 250px;
    overflow: hidden;
}

.service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-slow);
}

.service-card:hover .service-image img {
    transform: scale(1.1);
}

.service-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, transparent 50%, rgba(26, 58, 92, 0.9) 100%);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 2rem;
    opacity: 0;
    transition: var(--transition-normal);
}

.service-card:hover .service-overlay {
    opacity: 1;
}

.service-link {
    color: var(--color-white);
    font-weight: 600;
    font-size: 1.125rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transform: translateY(20px);
    transition: var(--transition-normal);
}

.service-card:hover .service-link {
    transform: translateY(0);
}

.service-content {
    padding: 2rem;
}

.service-icon {
    width: 60px;
    height: 60px;
    background-color: var(--color-primary);
    color: var(--color-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    margin-bottom: 1rem;
    transition: var(--transition-normal);
}

.service-card:hover .service-icon {
    background-color: var(--color-accent);
    transform: rotate(360deg);
}

.service-title {
    font-size: 1.5rem;
    color: var(--color-primary);
    margin-bottom: 1rem;
}

.service-description {
    color: var(--color-gray);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.service-features {
    list-style: none;
}

.service-features li {
    padding: 0.5rem 0;
    color: var(--color-dark);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.service-features li i {
    color: var(--color-secondary);
    font-size: 0.875rem;
}

/* Featured Projects Section */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2.5rem;
    align-items: stretch;
}

.project-card {
    background-color: var(--color-white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-normal);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.project-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-10px);
}

.project-image {
    position: relative;
    height: 280px;
    overflow: hidden;
    flex-shrink: 0;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-slow);
}

.project-card:hover .project-image img {
    transform: scale(1.1);
}

.project-category {
    position: absolute;
    top: 20px;
    right: 20px;
    background-color: var(--color-accent);
    color: var(--color-primary);
    padding: 0.5rem 1rem;
    border-radius: var(--radius-md);
    font-size: 0.875rem;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(193, 155, 95, 0.3);
}

.project-content {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.project-title {
    font-size: 1.5rem;
    color: var(--color-primary);
    margin-bottom: 1rem;
    line-height: 1.4;
    min-height: 3.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.project-location {
    color: var(--color-gray);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.95rem;
}

.project-location i {
    color: var(--color-accent);
    font-size: 1rem;
}

.project-description {
    color: var(--color-gray);
    line-height: 1.6;
    margin-bottom: 1.5rem;
    flex-grow: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.project-link {
    color: var(--color-primary);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition-fast);
}

.project-link:hover {
    gap: 1rem;
    color: var(--color-accent);
}

/* Sustainability Section */
.sustainability-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.sustainability-subtitle {
    font-size: 1.75rem;
    color: var(--color-dark);
    margin-bottom: 1.5rem;
    font-weight: 400;
}

.sustainability-description {
    color: var(--color-gray);
    line-height: 1.8;
    margin-bottom: 2rem;
    font-size: 1.125rem;
}

.sustainability-features {
    list-style: none;
    margin-bottom: 2rem;
}

.sustainability-features li {
    padding: 1rem 0;
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 1.125rem;
    color: var(--color-dark);
    border-bottom: 1px solid var(--color-gray-light);
}

.sustainability-features li:last-child {
    border-bottom: none;
}

.sustainability-features li i {
    font-size: 1.5rem;
    color: var(--color-secondary);
}

.sustainability-image {
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.sustainability-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* News Section */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2.5rem;
}

.news-card {
    background-color: var(--color-white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-normal);
}

.news-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-10px);
}

.news-image {
    position: relative;
    height: 250px;
    overflow: hidden;
}

.news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-slow);
}

.news-card:hover .news-image img {
    transform: scale(1.1);
}

.news-date {
    position: absolute;
    bottom: 20px;
    left: 20px;
    background-color: var(--color-white);
    color: var(--color-primary);
    padding: 0.5rem 1rem;
    border-radius: var(--radius-md);
    font-size: 0.875rem;
    font-weight: 600;
    box-shadow: var(--shadow-sm);
}

.news-content {
    padding: 2rem;
}

.news-category {
    display: inline-block;
    background-color: rgba(26, 58, 92, 0.1);
    color: var(--color-primary);
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-sm);
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.news-title {
    font-size: 1.375rem;
    color: var(--color-primary);
    margin-bottom: 1rem;
    line-height: 1.3;
}

.news-excerpt {
    color: var(--color-gray);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.news-link {
    color: var(--color-primary);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition-fast);
}

.news-link:hover {
    gap: 1rem;
    color: var(--color-accent);
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    color: var(--color-white);
    padding: 5rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.5;
}

.cta-content {
    position: relative;
    z-index: 2;
}

.cta-title {
    font-size: 3rem;
    color: var(--color-white);
    margin-bottom: 1.5rem;
}

.cta-description {
    font-size: 1.25rem;
    max-width: 700px;
    margin: 0 auto 2.5rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.95);
}

.cta-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-buttons .btn {
    min-width: 200px;
}

/* CTA Section Buttons - Special Styling */
.cta-section .btn-primary {
    background: var(--color-primary);
    color: var(--color-accent);
    border: 2px solid var(--color-accent);
    font-weight: 700;
    box-shadow: 0 4px 15px rgba(193, 155, 95, 0.3);
}

.cta-section .btn-primary:hover {
    background: var(--color-primary-dark);
    color: var(--color-accent);
    border-color: var(--color-accent);
    box-shadow: 0 6px 20px rgba(193, 155, 95, 0.5);
    transform: translateY(-3px);
}

.cta-section .btn-secondary {
    background: rgba(255, 255, 255, 0.15);
    color: var(--color-accent);
    border: 2px solid var(--color-accent);
    font-weight: 700;
    backdrop-filter: blur(10px);
}

.cta-section .btn-secondary:hover {
    background: rgba(255, 255, 255, 0.25);
    color: var(--color-accent);
    border-color: var(--color-accent);
    transform: translateY(-3px);
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */

@media (max-width: 992px) {
    .slide-content {
        padding-right: 3%;
    }
    
    .slide-text {
        padding: 2.5rem;
    }
    
    .slide-title {
        font-size: 3rem;
    }
    
    .slide-subtitle {
        font-size: 1.75rem;
    }
    
    .slide-description {
        font-size: 1.125rem;
    }
    
    .slider-nav {
        padding: 0 1rem;
    }
    
    .slider-btn {
        width: 45px;
        height: 45px;
        font-size: 1.25rem;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
    
    .sustainability-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .services-grid,
    .projects-grid,
    .news-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }
    
    .cta-title {
        font-size: 2.5rem;
    }
}

@media (max-width: 768px) {
    .hero-slider {
        height: 80vh;
        min-height: 500px;
    }
    
    .slide-content {
        justify-content: center;
        padding-right: 0;
        padding: 0 1rem;
    }
    
    .slide-text {
        text-align: center;
        padding: 2rem 1.5rem;
    }
    
    .slide-title {
        font-size: 2.5rem;
    }
    
    .slide-subtitle {
        font-size: 1.5rem;
    }
    
    .slide-description {
        font-size: 1rem;
    }
    
    .slide-buttons {
        flex-direction: column;
        gap: 1rem;
        justify-content: center;
    }
    
    .slider-btn {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .slider-dots {
        bottom: 2rem;
        gap: 0.75rem;
    }
    
    .dot {
        width: 10px;
        height: 10px;
    }
    
    .dot.active {
        width: 30px;
    }
    
    .hero-buttons .btn {
        width: 100%;
        max-width: 300px;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .stat-item {
        padding: 1.5rem 1rem;
    }
    
    .stat-number {
        font-size: 2.5rem;
    }
    
    .services-grid,
    .projects-grid,
    .news-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .project-card {
        max-width: 100%;
    }
    
    .project-title {
        font-size: 1.35rem;
        min-height: auto;
    }
    
    .project-image {
        height: 250px;
    }
    
    .cta-title {
        font-size: 2rem;
    }
    
    .cta-description {
        font-size: 1.125rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .cta-buttons .btn {
        width: 100%;
        max-width: 300px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1.25rem;
    }
    
    .stat-icon {
        font-size: 2rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .service-card,
    .project-card,
    .news-card {
        margin: 0 0.5rem;
    }
    
    .service-content,
    .project-content,
    .news-content {
        padding: 1.5rem;
    }
}
