/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    margin-top: 0;
    padding-top: var(--header-height, 80px);
    background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), url('https://images.unsplash.com/photo-1551717743-49959800b1f6?w=1200&q=80') center/cover;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    padding-left: 4rem;
    padding-right: 4rem;
    padding-bottom: 0;
    width: 100%;
    overflow-x: hidden;
}

@media (min-width: 1440px) {
    .hero {
        padding-left: 6rem;
        padding-right: 6rem;
    }
}

@media (min-width: 1920px) {
    .hero {
        padding-left: 8rem;
        padding-right: 8rem;
    }
}

.hero-content {
    max-width: 600px;
    color: #ffffff;
    opacity: 0;
    animation: fadeInUp 1.2s ease-out 0.3s forwards;
}

@media (min-width: 1440px) {
    .hero-content {
        max-width: 800px;
    }
}

@media (min-width: 1920px) {
    .hero-content {
        max-width: 1000px;
    }
}

.hero h1 {
    font-size: 3rem;
    font-weight: bold;
    margin-bottom: 1rem;
    line-height: 1.2;
    color: #ffffff;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.8), 0 0 20px rgba(0,0,0,0.5);
}

.hero p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    color: #ffffff;
    line-height: 1.7;
    text-shadow: 1px 1px 6px rgba(0,0,0,0.8), 0 0 15px rgba(0,0,0,0.5);
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn-call {
    background-color: rgba(255, 255, 255, 0.2);
    border: 2px solid #ffffff;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-call:hover {
    background-color: rgba(255, 255, 255, 0.3);
    border-color: #ffffff;
}

.btn-call .call-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: #ffffff;
    opacity: 1;
    transition: opacity 0.5s ease-out, transform 0.5s ease-out;
    z-index: 100;
    pointer-events: none;
}

.scroll-indicator.hidden {
    opacity: 0;
    transform: translateX(-50%) translateY(20px);
    pointer-events: none;
}

.scroll-indicator-text {
    font-size: 0.9rem;
    text-shadow: 1px 1px 4px rgba(0,0,0,0.8);
    font-weight: 500;
}

.scroll-indicator-arrow {
    width: 30px;
    height: 30px;
    border-right: 3px solid #ffffff;
    border-bottom: 3px solid #ffffff;
    transform: rotate(45deg);
    animation: bounce 2s infinite;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: rotate(45deg) translateY(0);
    }
    40% {
        transform: rotate(45deg) translateY(-10px);
    }
    60% {
        transform: rotate(45deg) translateY(-5px);
    }
}

.btn {
    display: inline-block;
    padding: 0.75rem 2rem;
    background-color: #2F7F7A;
    color: #ffffff;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: background-color 0.3s;
    border: none;
    cursor: pointer;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn:hover {
    background-color: #5FA5A0;
}

.btn:active {
    transform: scale(0.98);
}

/* Features Section */
.features {
    padding-top: 0;
    padding-bottom: 4rem;
    padding-left: 2rem;
    padding-right: 2rem;
    margin-top: 0;
    background-color: #ffffff;
    scroll-margin-top: 0;
}

@media (min-width: 1440px) {
    .features {
        padding-left: 3rem;
        padding-right: 3rem;
        padding-bottom: 5rem;
    }
}

@media (min-width: 1920px) {
    .features {
        padding-left: 4rem;
        padding-right: 4rem;
        padding-bottom: 6rem;
    }
}

.features-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: bold;
    color: #2c2c2c;
    margin-top: 2rem;
    margin-bottom: 3rem;
    opacity: 0;
    animation: fadeInUp 1s ease-out forwards;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

@media (min-width: 1440px) {
    .features-grid {
        max-width: 1400px;
        gap: 2.5rem;
    }
}

@media (min-width: 1920px) {
    .features-grid {
        max-width: 1600px;
        gap: 3rem;
    }
}

.feature-card {
    background-color: #ffffff;
    border-radius: 20px;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    opacity: 0;
    transform: translateY(30px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    border: 1px solid #f0f0f0;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
}

.feature-card:hover {
    text-decoration: none;
    color: inherit;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #2F7F7A, #5FA5A0);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
    z-index: 2;
}

.feature-card.animated {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out, all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.feature-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 12px 30px rgba(0,0,0,0.15);
    border-color: #2F7F7A;
}

.feature-card:hover::before {
    transform: scaleX(1);
}

.feature-icon-wrapper {
    width: 100%;
    height: 200px;
    margin: 0;
    background: linear-gradient(135deg, #2F7F7A 0%, #5FA5A0 100%);
    border-radius: 20px 20px 0 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s ease;
    overflow: hidden;
    position: relative;
}

.feature-icon-wrapper::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.1), transparent);
    pointer-events: none;
}

.feature-card:hover .feature-icon-wrapper {
    transform: scale(1.05);
}

.feature-icon {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

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

.feature-card-content {
    padding: 2rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.feature-card h3 {
    font-size: 1.6rem;
    font-weight: bold;
    color: #2c2c2c;
    margin-bottom: 1rem;
    transition: color 0.3s ease;
}

.feature-card:hover h3 {
    color: #2F7F7A;
}

.feature-card p {
    color: #666;
    line-height: 1.7;
    font-size: 1rem;
    margin-bottom: 1.5rem;
    flex: 1;
}

.feature-card-cta {
    color: #2F7F7A;
    font-weight: 600;
    font-size: 1rem;
    margin-top: auto;
    transition: color 0.3s ease;
}

.feature-card:hover .feature-card-cta {
    color: #5FA5A0;
}

/* Blog Section */
.blog {
    padding-top: 2rem;
    padding-bottom: 4rem;
    padding-left: 2rem;
    padding-right: 2rem;
    background-color: #f8f8f8;
    scroll-margin-top: calc(var(--header-height));
}

.blog-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: bold;
    color: #2c2c2c;
    margin-top: 0;
    margin-bottom: 3rem;
    opacity: 0;
    animation: fadeInUp 1s ease-out forwards;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto 3rem;
    width: 100%;
}

@media (min-width: 1440px) {
    .blog-grid {
        max-width: 1400px;
        gap: 2.5rem;
    }
}

@media (min-width: 1920px) {
    .blog-grid {
        max-width: 1600px;
        gap: 3rem;
    }
}

.blog-card {
    background-color: #ffffff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    border: 1px solid #f0f0f0;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    opacity: 0;
    transform: translateY(30px);
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    display: block;
    position: relative;
}

.blog-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #2F7F7A, #5FA5A0);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
    z-index: 2;
}

.blog-card:hover {
    text-decoration: none;
    color: inherit;
}

.blog-card.animated {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out, all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.blog-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 12px 30px rgba(0,0,0,0.15);
    border-color: #2F7F7A;
}

.blog-card:hover::before {
    transform: scaleX(1);
}

.blog-card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.blog-card-link-wrapper {
    overflow: hidden;
    position: relative;
}

.blog-card:hover .blog-card-image {
    transform: scale(1.1);
}

.blog-card-content {
    padding: 1.5rem;
}

.blog-card-date {
    color: #000000;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.blog-card-title {
    font-size: 1.5rem;
    font-weight: bold;
    color: #000000;
    margin-bottom: 1rem;
    line-height: 1.3;
    transition: color 0.3s ease;
}

.blog-card:hover .blog-card-title {
    color: #2F7F7A;
}

.blog-card-excerpt {
    color: #666;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.blog-card-link {
    color: #2F7F7A !important;
    text-decoration: none !important;
    font-weight: 600;
    transition: color 0.3s;
    display: inline-block;
}

.blog-card:hover .blog-card-link {
    color: #2F7F7A !important;
    text-decoration: none !important;
}

.blog-card-link:hover {
    color: #2F7F7A !important;
    text-decoration: none !important;
}

/* Remove underlines and custom colors from all links in blog section on homepage */
.blog-card a,
.blog-card-content a,
.blog-card-link-wrapper {
    text-decoration: none !important;
    color: inherit !important;
}

.blog-card a:hover,
.blog-card-content a:hover {
    text-decoration: none !important;
    color: inherit !important;
}

.blog-see-all {
    text-align: center;
}

.blog-see-all .btn {
    background-color: #2F7F7A;
    color: #ffffff;
}

.blog-see-all .btn:hover {
    background-color: #5FA5A0;
}

/* About Section */
.about {
    padding: 4rem 2rem;
    background-color: #ffffff;
    scroll-margin-top: calc(var(--header-height));
}

.about-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    width: 100%;
}

@media (min-width: 1440px) {
    .about-container {
        max-width: 1400px;
        gap: 5rem;
    }
}

@media (min-width: 1920px) {
    .about-container {
        max-width: 1600px;
        gap: 6rem;
    }
}

.about-content {
    opacity: 0;
    transform: translateX(-30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.about-content.animated {
    opacity: 1;
    transform: translateX(0);
}

.about-content h2 {
    font-size: 2.5rem;
    font-weight: bold;
    color: #2c2c2c;
    margin-top: 0;
    margin-bottom: 1.5rem;
}

.about-content p {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 2rem;
    line-height: 1.8;
}

.about-image {
    width: 100%;
    height: 500px;
    object-fit: cover;
    border-radius: 10px;
    max-width: 100%;
    opacity: 0;
    transform: translateX(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

@media (min-width: 1440px) {
    .about-image {
        height: 600px;
    }
}

@media (min-width: 1920px) {
    .about-image {
        height: 700px;
    }
}

.about-image.animated {
    opacity: 1;
    transform: translateX(0);
}

/* Responsive */
@media (max-width: 1024px) {
    .hero {
        height: 100vh;
        padding-top: var(--header-height, 80px);
        padding-left: 2rem;
        padding-right: 2rem;
        padding-bottom: 0;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .about-container {
        gap: 2rem;
    }

    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .hero {
        height: 100vh;
        min-height: 500px;
        padding-top: var(--header-height, 70px);
        padding-left: 1.5rem;
        padding-right: 1.5rem;
        padding-bottom: 0;
        align-items: flex-start;
        justify-content: center;
        width: 100%;
        margin: 0;
        overflow-x: hidden;
    }

    .hero-content {
        max-width: 100%;
        margin-top: 25vh;
        text-align: center;
    }

    .hero h1 {
        font-size: 2rem;
        line-height: 1.3;
        color: #ffffff;
        text-shadow: 2px 2px 8px rgba(0,0,0,0.8), 0 0 20px rgba(0,0,0,0.5);
        text-align: center;
    }

    .hero p {
        font-size: 1rem;
        margin-bottom: 1.5rem;
        color: #ffffff;
        text-shadow: 1px 1px 6px rgba(0,0,0,0.8), 0 0 15px rgba(0,0,0,0.5);
        text-align: center;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
        width: 100%;
    }

    .btn {
        padding: 0.875rem 1.5rem;
        font-size: 1rem;
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
        display: block;
    }

    .scroll-indicator {
        bottom: auto;
        top: 75vh;
    }

    .scroll-indicator-text {
        font-size: 0.8rem;
    }

    .scroll-indicator-arrow {
        width: 25px;
        height: 25px;
    }

    .features {
        padding-top: 0;
        padding-bottom: 3rem;
        padding-left: 1.5rem;
        padding-right: 1.5rem;
        margin-top: 0;
    }

    .features-title {
        font-size: 2rem;
        margin-top: 1.5rem;
        margin-bottom: 2rem;
    }

    .features-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .blog {
        padding-top: 1.5rem;
        padding-bottom: 3rem;
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }

    .blog-title {
        font-size: 2rem;
        margin-top: 0;
        margin-bottom: 2rem;
    }

    .blog-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        margin-bottom: 2rem;
    }

    .feature-card {
        border-radius: 15px;
    }

    .feature-icon-wrapper {
        height: 280px;
        border-radius: 15px 15px 0 0;
    }

    .feature-card-content {
        padding: 1.5rem;
    }

    .feature-icon {
        width: 100%;
        height: 100%;
    }

    .feature-card h3 {
        font-size: 1.3rem;
    }

    .about {
        padding: 3rem 1.5rem;
    }

    .about-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .about-content h2 {
        font-size: 2rem;
    }

    .about-content p {
        font-size: 1rem;
    }

    .about-image {
        height: 300px;
    }
}

@media (max-width: 480px) {
    .hero {
        height: 100vh;
        min-height: 450px;
        padding-top: var(--header-height, 60px);
        padding-left: 1rem;
        padding-right: 1rem;
        padding-bottom: 0;
        align-items: flex-start;
        justify-content: center;
        width: 100%;
        margin: 0;
        overflow-x: hidden;
    }

    .hero-content {
        max-width: 100%;
        margin-top: 20vh;
        text-align: center;
    }

    .hero h1 {
        font-size: 1.75rem;
        color: #ffffff;
        text-shadow: 2px 2px 8px rgba(0,0,0,0.8), 0 0 20px rgba(0,0,0,0.5);
        text-align: center;
    }

    .hero p {
        font-size: 0.95rem;
        color: #ffffff;
        text-shadow: 1px 1px 6px rgba(0,0,0,0.8), 0 0 15px rgba(0,0,0,0.5);
        text-align: center;
    }

    .scroll-indicator {
        bottom: auto;
        top: 75vh;
    }

    .scroll-indicator-text {
        font-size: 0.75rem;
    }

    .scroll-indicator-arrow {
        width: 20px;
        height: 20px;
    }

    .features-title {
        font-size: 1.75rem;
    }

    .blog-title {
        font-size: 1.75rem;
    }

    .about-content h2 {
        font-size: 1.75rem;
    }

    .feature-card {
        border-radius: 12px;
    }

    .feature-icon-wrapper {
        height: 250px;
        border-radius: 12px 12px 0 0;
    }

    .feature-card-content {
        padding: 1.25rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
        width: 100%;
    }

    .btn {
        padding: 0.75rem 1.25rem;
        font-size: 0.95rem;
        width: 100%;
        max-width: 280px;
    }
}

/* Touch-friendly improvements */
@media (hover: none) and (pointer: coarse) {
    .btn {
        min-height: 44px;
        display: flex;
        align-items: center;
    }

    .feature-card {
        padding: 1.75rem;
    }

    .feature-icon-wrapper {
        height: 220px;
    }

    .feature-card-content {
        padding: 1.5rem;
    }
}
