/* Home Page Specific Styles */

/* Animation Classes */
.fade-up {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}
/* ===== NEWS SLIDER ===== */
.news-slider-wrapper {
  overflow: hidden;
}

.news-slider-track {
  display: flex;
  gap: 24px;
  transition: transform 0.4s ease;
}

.news-card {
  background: var(--card-bg, #fff);
  border-radius: 12px;
  overflow: hidden;
  flex: 0 0 calc(33.333% - 16px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.08);
}

/* IMAGE — VERY IMPORTANT */
.news-card-image {
  height: 220px;
  width: 100%;
  overflow: hidden;
}

.news-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* CONTENT */
.news-card-content {
  padding: 18px;
}

.news-card-content h3 {
  font-size: 1.1rem;
  margin-bottom: 8px;
}

.news-card-content p {
  font-size: 0.9rem;
  color: #666;
}

/* DOTS */
.news-slider-dots {
  margin-top: 24px;
  text-align: center;
}

.news-dot {
  width: 10px;
  height: 10px;
  background: #ccc;
  border-radius: 50%;
  display: inline-block;
  margin: 0 6px;
  cursor: pointer;
}

.news-dot.active {
  background: var(--primary-color, #13167B);
}

/* RESPONSIVE */
@media (max-width: 1024px) {
  .news-card {
    flex: 0 0 calc(50% - 12px);
  }
}

@media (max-width: 768px) {
  .news-card {
    flex: 0 0 100%;
  }
}



/* Hero Slider Adjustments */
.hero-slider {
    height: 100vh;
    position: relative;
    overflow: hidden;
}

.slides-container {
    height: 100%;
    position: relative;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slide.active {
    opacity: 1;
}

.slide-content {
    max-width: 800px;
    text-align: center;
    color: white;
    z-index: 2;
    padding: 20px;
}

.slide-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    filter: brightness(0.7);
}

.slide h1 {
    color: white;
    font-size: 3.5rem;
    margin-bottom: 20px;
    animation: fadeInUp 1s ease;
}

.slide p {
    font-size: 1.3rem;
    color: white;
    margin-bottom: 30px;
    animation: fadeInUp 1s ease 0.3s both;
}

.slide .btn {
    animation: fadeInUp 1s ease 0.6s both;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Company Overview */
.company-overview {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.overview-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.overview-text h3 {
    color: var(--primary-color);
    margin-bottom: 20px;
    font-size: 1.8rem;
}

.overview-text p {
    margin-bottom: 25px;
    color: var(--text-secondary);
    line-height: 1.7;
}

.key-facts {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 40px;
}

.fact-item {
    text-align: center;
    padding: 20px;
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.fact-item:hover {
    transform: translateY(-5px);
}

.fact-item i {
    font-size: 2rem;
    color: var(--accent-color);
    margin-bottom: 15px;
}

.fact-item h4 {
    margin-bottom: 10px;
    color: var(--primary-color);
}

.fact-item p {
    font-size: 0.9rem;
    margin-bottom: 0;
}

.overview-image {
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.overview-image .image-container {
    position: relative;
    height: 400px;
}

.overview-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.image-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 15px;
    text-align: center;
}

/* Services Overview */
/* SERVICES GRID */
.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    align-items: stretch;
}

/* MAIN SERVICE CARD */
.service-card {
    background: var();
    border-radius: 14px;
    padding: 32px 28px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: column;
    position: relative;
    transition: all 0.35s ease;
    border: 1px solid rgba(0, 0, 0, 0.04);
}

/* Hover = premium lift */
.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 48px rgba(0, 0, 0, 0.12);
}

/* ICON BADGE */
.service-icon {
    width: 64px;
    height: 64px;
    border-radius: 14px;
    background: linear-gradient(
        135deg,
        var(--primary-color),
        var(--primary-light)
    );
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 22px;
}

.service-icon i {
    font-size: 1.6rem;
    color: #fff;
}

/* TITLE */
.service-card h3 {
    font-size: 1.25rem;
    margin-bottom: 14px;
    color: var(--secondary-color);
}

/* DESCRIPTION */
.service-card p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 18px;
}

/* FEATURES BLOCK */
.service-features {
    margin-top: 10px;
    margin-bottom: 24px;
}

.service-features li {
    font-size: 0.9rem;
    margin-bottom: 8px;
}

/* CTA pinned to bottom */
.service-card .btn {
    margin-top: auto;
    align-self: flex-start;
}
.specialized-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.additional-services {
    margin-top: 40px;
}

.specialized-item {
    background: var(--card-bg, #ffffff);
    padding: 28px 24px;
    border-radius: 14px;
    text-align: center;
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.07);
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.04);
}

.specialized-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.12);
}

.specialized-item i {
    font-size: 2.4rem;
    margin-bottom: 16px;
    color: var(--primary-color);
}

.specialized-item h4 {
    font-size: 1.1rem;
    margin-bottom: 10px;
}

.specialized-item p {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* Statistics Section */
.stats-section {
    background: linear-gradient(rgba(0, 0, 0, 0.85), rgba(0, 0, 0, 0.85)), url('./assets/Caspy-pix/CaspyTechGASF.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: white;
}

.stats-section h2,
.stats-section p {
    color: white;
}

.stats-section h2::after {
    background: var(--accent-color);
    left: 50%;
    transform: translateX(-50%);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-top: 60px;
}

.stat-item {
    text-align: center;
    padding: 40px 30px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius);
    backdrop-filter: blur(10px);
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.stat-item:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.15);
}

.stat-number {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--accent-color);
    margin-bottom: 15px;
    display: block;
    text-shadow: 0 2px 10px rgba(255, 107, 0, 0.3);
}

.stat-label {
    font-size: 1.1rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
}

.stats-description {
    text-align: center;
    margin-top: 50px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.8;
}

/* Business Units */
.units-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.unit-card {
    background: var(--card-bg);
    padding: 40px 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
    text-align: center;
    border-top: 4px solid var(--primary-color);
}

.unit-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.unit-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 25px;
}

.unit-card h3 {
    margin-bottom: 20px;
    color: var(--primary-color);
}

.unit-card p {
    color: var(--text-secondary);
    margin-bottom: 25px;
    line-height: 1.7;
}

.unit-highlight {
    background: var(--light-gray);
    padding: 15px;
    border-radius: var(--border-radius);
    margin-top: 20px;
}

.unit-highlight span {
    font-size: 2rem;
    font-weight: 700;
    color: var(--accent-color);
    display: block;
}

.unit-highlight small {
    color: var(--dark-gray);
    font-size: 0.9rem;
}

/* News Slider */
.news-slider-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.news-slider-container {
    position: relative;
    overflow: hidden;
    margin-top: 50px;
}

.news-slider-track {
    display: flex;
    transition: transform 0.5s ease;
    gap: 30px;
}

.news-slider-item {
    min-width: calc(33.333% - 20px);
    background: var(--card-bg);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.news-slider-item:hover {
    transform: translateY(-10px);
}

.news-image {
    height: 200px;
    width: 100%;
    background-size: cover;
    background-position: center;
    position: relative;
}

.news-date {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--accent-color);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
}

.news-content {
    padding: 25px;
}

.news-content h3 {
    margin-bottom: 10px;
    font-size: 1.3rem;
    line-height: 1.4;
}

.news-content p {
    color: var(--text-secondary);
    margin-bottom: 20px;
    line-height: 1.6;
}

.news-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.news-tag {
    background: var(--light-gray);
    color: var(--text-secondary);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

.news-slider-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 40px;
}

.news-slider-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--medium-gray);
    cursor: pointer;
    transition: all 0.3s ease;
}

.news-slider-dot.active {
    background: var(--accent-color);
    transform: scale(1.3);
}

/* Sustainability Commitment */
.sustainability-commitment {
    background: var(--light-gray);
}

.sustainability-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.sustainability-text h3 {
    color: var(--primary-color);
    margin-bottom: 25px;
    font-size: 1.8rem;
}

.sustainability-text p {
    color: var(--text-secondary);
    margin-bottom: 40px;
    line-height: 1.8;
}

.esg-pillars {
    display: grid;
    grid-template-columns: 1fr;
    gap: 25px;
}

.esg-pillar {
    background: white;
    padding: 25px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.esg-pillar h4 {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.esg-pillar i {
    margin-right: 10px;
    color: var(--accent-color);
}

.esg-pillar ul {
    list-style: none;
    padding: 0;
}

.esg-pillar li {
    margin-bottom: 10px;
    padding-left: 20px;
    position: relative;
    color: var(--text-secondary);
    line-height: 1.6;
}

.esg-pillar li:before {
    content: "•";
    color: var(--accent-color);
    position: absolute;
    left: 0;
    font-size: 1.2rem;
}

.sustainability-card {
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.card-header {
    background: var(--primary-color);
    color: white;
    padding: 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.card-header h4 {
    margin: 0;
    color: white;
}

.card-badge {
    background: var(--accent-color);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
}

.card-body {
    padding: 30px;
}

.roadmap-items {
    list-style: none;
    padding: 0;
}

.roadmap-items li {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    color: var(--text-secondary);
    font-size: 1rem;
}

.roadmap-items i {
    color: var(--accent-color);
    margin-right: 15px;
    font-size: 1.2rem;
}

/* CTA with Image Section */
.cta-image-section {
    position: relative;
    padding: 120px 0;
    color: white;
    overflow: hidden;
}

.cta-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
}

.cta-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(19, 22, 123, 0.9) 0%, rgba(0, 0, 0, 0.8) 100%);
}

.cta-content {
    position: relative;
    z-index: 2;
    text-align: center;
}

.cta-content h2 {
    color: white;
    font-size: 3rem;
    margin-bottom: 30px;
}

.cta-content p {
    font-size: 1.3rem;
    max-width: 800px;
    margin: 0 auto 50px;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.8;
}

.cta-features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin: 60px 0;
}

.cta-feature {
    text-align: center;
    padding: 30px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: var(--transition);
}

.cta-feature:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.15);
}

.cta-feature i {
    font-size: 2.5rem;
    color: var(--accent-color);
    margin-bottom: 20px;
}

.cta-feature h4 {
    color: white;
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.cta-feature p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1rem;
    margin: 0;
}

.cta-buttons-group {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    margin: 50px 0;
}

.cta-buttons-group .btn {
    min-width: 200px;
}

.cta-buttons-group .btn i {
    margin-right: 10px;
}

.cta-contact-info {
    margin-top: 50px;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.cta-contact-info p {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin: 15px 0;
    font-size: 1.1rem;
}

.cta-contact-info i {
    color: var(--accent-color);
}



/* Responsive Design */
@media (max-width: 1200px) {
    .overview-content,
    .sustainability-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .cta-features {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .news-slider-item {
        min-width: calc(50% - 15px);
    }
}
@media (max-width: 1200px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .services-grid {
        grid-template-columns: 1fr;
    }

    .specialized-grid {
        grid-template-columns: 1fr;
    }
}


@media (max-width: 992px) {
    .key-facts,
    .specialized-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .units-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .slide h1 {
        font-size: 2.8rem;
    }
    
    .cta-content h2 {
        font-size: 2.5rem;
    }
}

@media (max-width: 768px) {
    .services-grid,
    .stats-grid,
    .key-facts,
    .specialized-grid,
    .units-grid,
    .cta-features {
        grid-template-columns: 1fr;
    }
    
    .news-slider-item {
        min-width: 100%;
    }
    
    .slide h1 {
        font-size: 2.2rem;
    }
    
    .slide p {
        font-size: 1.1rem;
    }
    
    .cta-content h2 {
        font-size: 2rem;
    }
    
    .cta-content p {
        font-size: 1.1rem;
    }
    
    .cta-buttons-group {
        flex-direction: column;
        align-items: center;
    }
    
    .cta-buttons-group .btn {
        width: 100%;
        max-width: 300px;
    }
    
    .footer-legal {
        flex-direction: column;
        text-align: center;
    }
    
    .legal-links {
        margin-top: 10px;
    }
}

@media (max-width: 576px) {
    .service-card,
    .unit-card,
    .fact-item,
    .specialized-item,
    .esg-pillar,
    .cta-feature {
        padding: 25px 20px;
    }
    
    .stat-number {
        font-size: 2.8rem;
    }
    
    .slide h1 {
        font-size: 1.8rem;
    }
    
    .cta-content h2 {
        font-size: 1.8rem;
    }
}
