/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
    perspective: 1000px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    opacity: 1;
    transition: opacity 0.4s ease-in-out;
    will-change: opacity;
}

/* Hero Section */
.hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 60px 80px;
    background: linear-gradient(135deg, #f9fdfb 0%, #e8f5f0 100%);
    flex-wrap: wrap;
    gap: 40px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 200%;
    background: radial-gradient(circle, rgba(58, 95, 76, 0.05) 0%, transparent 70%);
    animation: float 20s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    50% { transform: translate(-30px, -30px) rotate(5deg); }
}

.hero-text {
    flex: 1;
    min-width: 300px;
}

.hero-text {
    position: relative;
    z-index: 1;
}

.hero-text h1 {
    font-size: 48px;
    margin-bottom: 20px;
    color: #1a3b2a;
    line-height: 1.2;
    transform: translateZ(0);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
    animation: fadeInUp 0.8s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.services {
    font-size: 18px;
    margin-bottom: 10px;
    color: #3a5f4c;
    font-weight: 500;
}

.desc {
    color: #3a5f4c;
    margin-bottom: 30px;
    font-size: 16px;
}

.buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.buttons a {
    text-decoration: none;
    padding: 12px 30px;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn {
    background: #3a5f4c;
    color: white;
    border: 2px solid #3a5f4c;
    position: relative;
    overflow: hidden;
    transform-style: preserve-3d;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.btn:hover::before {
    left: 100%;
}

.btn.outline {
    background: transparent;
    color: #3a5f4c;
    border: 2px solid #3a5f4c;
}

.btn:hover {
    background: #2d4b3b;
    transform: translateY(-3px) translateZ(10px);
    box-shadow: 0 10px 25px rgba(58, 95, 76, 0.3);
}

.btn.outline:hover {
    background: #3a5f4c;
    color: white;
    transform: translateY(-3px) translateZ(10px);
    box-shadow: 0 10px 25px rgba(58, 95, 76, 0.3);
}

.hero-image {
    flex: 1;
    min-width: 300px;
    text-align: center;
    position: relative;
    z-index: 1;
    transform-style: preserve-3d;
    animation: floatImage 6s ease-in-out infinite;
}

@keyframes floatImage {
    0%, 100% { transform: translateY(0px) rotateY(0deg); }
    50% { transform: translateY(-20px) rotateY(5deg); }
}

.hero-image img {
    max-width: 100%;
    height: auto;
    max-height: 420px;
    filter: drop-shadow(0 20px 40px rgba(58, 95, 76, 0.2));
    transition: transform 0.3s ease;
}

.hero-image:hover img {
    transform: scale(1.05) translateZ(20px);
}

/* Features Section */
.features {
    width: 100%;
    background: linear-gradient(135deg, #f2f7f4 0%, #e8f5f0 100%);
    padding: 80px 20px;
    position: relative;
}

.features-container {
    display: flex;
    gap: 30px;
    max-width: 1200px;
    margin: auto;
    flex-wrap: wrap;
    justify-content: center;
}

.feature-card {
    background: #ffffff;
    padding: 30px 25px;
    border-radius: 16px;
    flex: 1;
    min-width: 250px;
    max-width: 350px;
    text-align: center;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transform-style: preserve-3d;
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(58, 95, 76, 0.05) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.feature-card:hover {
    transform: translateY(-10px) rotateX(5deg) translateZ(20px);
    box-shadow: 0 20px 40px rgba(58, 95, 76, 0.15);
}

.feature-card:hover::before {
    opacity: 1;
}

.feature-card .icon {
    margin-bottom: 20px;
}

.feature-card .icon img {
    width: 60px;
    height: 60px;
    object-fit: contain;
    margin: 0 auto;
}

.feature-card h3 {
    font-size: 20px;
    margin-bottom: 10px;
    color: #3a5f4c;
}

.feature-card p {
    color: #555;
    font-size: 15px;
    line-height: 1.6;
}

/* Services Section */
.services-section {
    padding: 80px 20px;
    background: linear-gradient(135deg, #f5fafa 0%, #e8f5f0 50%, #f0f8f4 100%);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.services-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(58, 95, 76, 0.03) 0%, transparent 70%);
    animation: rotate 30s linear infinite;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-title {
    font-size: 2.2rem;
    color: #3a5f4c;
    margin-bottom: 20px;
    font-weight: 600;
    position: relative;
    z-index: 1;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.05);
}

.section-title + p {
    color: #666;
    font-size: 1.1rem;
    margin-bottom: 40px;
}

.services-grid {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.service-card {
    background: white;
    border-radius: 20px;
    padding: 30px 25px;
    width: 100%;
    max-width: 350px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transform-style: preserve-3d;
    position: relative;
    overflow: hidden;
}

.service-card::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(58, 95, 76, 0.1) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.service-card:hover {
    transform: translateY(-12px) rotateY(5deg) translateZ(25px);
    box-shadow: 0 25px 50px rgba(58, 95, 76, 0.2);
}

.service-card:hover::after {
    opacity: 1;
}

.service-icon img {
    width: 80px;
    height: 80px;
    object-fit: contain;
    margin-bottom: 20px;
}

.service-content h3 {
    font-size: 1.4rem;
    color: #3a5f4c;
    margin-bottom: 15px;
}

.service-content p {
    font-size: 1rem;
    color: #555;
    line-height: 1.6;
    margin-bottom: 20px;
}

.read-more {
    color: #3a5f4c;
    font-weight: 600;
    text-decoration: none;
    font-size: 1rem;
    display: inline-block;
    margin-top: 10px;
    position: relative;
    transition: all 0.3s ease;
}

.read-more::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: #3a5f4c;
    transition: width 0.3s ease;
}

.read-more:hover {
    transform: translateX(5px);
}

.read-more:hover::after {
    width: 100%;
}

/* How It Works Section */
.how-it-work-services-section {
    padding: 80px 20px;
    background: linear-gradient(135deg, #ffffff 0%, #f9fdfb 100%);
    text-align: center;
    position: relative;
}

.how-it-work-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.how-it-work-section-title {
    font-size: 2.2rem;
    color: #3a5f4c;
    margin-bottom: 10px;
    font-weight: 600;
    position: relative;
    z-index: 1;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.05);
}

.how-it-work-services-section p {
    color: #666;
    font-size: 1.1rem;
    margin-bottom: 40px;
}

.how-it-work-services-grid {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.how-it-work-service-card {
    background: #f9fdfb;
    border-radius: 20px;
    padding: 30px 25px;
    width: 100%;
    max-width: 350px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    border: 1px solid #e8f5f0;
    transform-style: preserve-3d;
    position: relative;
}

.how-it-work-service-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 20px;
    padding: 2px;
    background: linear-gradient(135deg, rgba(58, 95, 76, 0.3), rgba(58, 95, 76, 0));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.how-it-work-service-card:hover {
    transform: translateY(-10px) rotateX(-5deg) translateZ(20px);
    box-shadow: 0 20px 40px rgba(58, 95, 76, 0.15);
    border-color: rgba(58, 95, 76, 0.3);
}

.how-it-work-service-card:hover::before {
    opacity: 1;
}

.how-it-work-service-icon img {
    width: 80px;
    height: 80px;
    object-fit: contain;
    margin-bottom: 20px;
}

.how-it-work-service-content h3 {
    font-size: 1.4rem;
    color: #3a5f4c;
    margin-bottom: 15px;
}

.how-it-work-service-content p {
    font-size: 1rem;
    color: #555;
    line-height: 1.6;
    margin-bottom: 20px;
}

/* Professionals Section */
.professionals {
    padding: 80px 20px;
    background: linear-gradient(135deg, #f2f7f4 0%, #e8f5f0 100%);
    position: relative;
    overflow: hidden;
}

.professionals::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(58, 95, 76, 0.2), transparent);
}

.professionals-container {
    max-width: 1200px;
    margin: 0 auto;
}

.professionals h2 {
    font-size: 2.2rem;
    color: #3a5f4c;
    text-align: center;
    margin-bottom: 15px;
    font-weight: 600;
    position: relative;
    z-index: 1;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.05);
}

.professionals .subtitle {
    text-align: center;
    color: #666;
    font-size: 1.1rem;
    margin-bottom: 50px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.pro-content {
    display: flex;
    align-items: center;
    /* gap: 50px; */
    flex-wrap: wrap;
    justify-content: center;
}

.image-box {
    flex: 1;
    /* min-width: 300px; */
    text-align: center;
}

.image-box {
    transform-style: preserve-3d;
}

.image-box img {
    max-width: 70%;
    height: auto;
    /* border-radius: 16px; */
    /* box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15); */
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    filter: drop-shadow(0 10px 20px rgba(58, 95, 76, 0.1));
}

.image-box:hover img {
    transform: translateZ(30px) scale(1.02);
    /* box-shadow: 0 25px 60px rgba(58, 95, 76, 0.25); */
}

.text-box {
    flex: 1;
    min-width: 300px;
}

.text-box ul {
    list-style: none;
    margin-bottom: 30px;
}

.text-box li {
    color: #333;
    font-size: 1.1rem;
    margin-bottom: 15px;
    padding-left: 30px;
    position: relative;
    text-align: left;
}

.text-box li:before {
    content: "✓";
    color: #3a5f4c;
    font-weight: bold;
    position: absolute;
    left: 0;
}

.btn-1 {
    display: inline-block;
    background: linear-gradient(135deg, #3a5f4c 0%, #2d4b3b 100%);
    color: white;
    padding: 12px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    margin-right: 20px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 2px solid #3a5f4c;
    position: relative;
    overflow: hidden;
    transform-style: preserve-3d;
    box-shadow: 0 4px 15px rgba(58, 95, 76, 0.2);
}

.btn-1::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.btn-1:hover::before {
    left: 100%;
}

.btn-1:hover {
    background: linear-gradient(135deg, #4a6f5c 0%, #3a5f4c 100%);
    transform: translateY(-3px) translateZ(10px);
    box-shadow: 0 8px 25px rgba(58, 95, 76, 0.3);
}

/* .learn-more {
    color: #3a5f4c;
    font-weight: 600;
    text-decoration: none;
    font-size: 1rem;
    position: relative;
    transition: all 0.3s ease;
    display: inline-block;
} */
.learn-more {
    display: inline-block;
    /* background: linear-gradient(135deg, #3a5f4c 0%, #2d4b3b 100%); */
    color: #3a5f4c;
    padding: 12px 10px;
    /* border-radius: 8px; */
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    margin-right: 20px;
    transition: all 0.3s ease;
    /* border: 2px solid #3a5f4c; */
    position: relative;
    overflow: hidden;
    /* transform-style: preserve-3d; */
    /* box-shadow: 0 4px 15px rgba(58, 95, 76, 0.2); */
}

/* .learn-more::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: #3a5f4c;
    transition: width 0.3s ease;
} */

.learn-more:hover {
    transform: translateX(5px);
}

.learn-more:hover::after {
    width: 100%;
}

/* ===================== RESPONSIVE BREAKPOINTS ===================== */

/* Large Desktop - 1400px and above */
@media (min-width: 1400px) {
    .container,
    .how-it-work-container,
    .professionals-container {
        max-width: 1400px;
    }
}

/* Tablet - 1024px and below */
@media (max-width: 1024px) {
    .hero {
        padding: 50px 40px;
        gap: 30px;
    }
    
    .hero-text h1 {
        font-size: 40px;
    }
    
    .hero-image img {
        max-height: 380px;
    }
    
    .features-container {
        gap: 20px;
    }
    
    .feature-card {
        min-width: 220px;
    }
    
    .section-title,
    .how-it-work-section-title,
    .professionals h2 {
        font-size: 2rem;
    }
    
    .service-card:hover,
    .feature-card:hover,
    .how-it-work-service-card:hover {
        transform: translateY(-8px) translateZ(15px);
    }
}

/* Tablet - 768px and below */
@media (max-width: 768px) {
    .hero {
        flex-direction: column;
        text-align: center;
        padding: 40px 20px;
        gap: 30px;
    }
    
    .hero-text {
        order: 1;
    }
    
    .hero-image {
        order: 2;
    }
    
    .hero-text h1 {
        font-size: 32px;
    }
    
    .services {
        font-size: 16px;
    }
    
    .desc {
        font-size: 15px;
    }
    
    .buttons {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .buttons a {
        width: 200px;
        text-align: center;
    }
    
    .features {
        padding: 40px 20px;
    }
    
    .features-container {
        flex-direction: column;
        align-items: center;
    }
    
    .feature-card {
        max-width: 400px;
        width: 100%;
    }
    
    .section-title,
    .how-it-work-section-title,
    .professionals h2 {
        font-size: 1.8rem;
    }
    
    .services-section {
        padding: 50px 20px;
    }
    
    .services-grid {
        gap: 25px;
    }
    
    .service-card,
    .how-it-work-service-card {
        max-width: 400px;
        width: 100%;
    }
    
    .how-it-work-services-section {
        padding: 50px 20px;
    }
    
    .pro-content {
        flex-direction: column;
        gap: 40px;
    }
    
    .image-box,
    .text-box {
        width: 100%;
    }
    
    .text-box li {
        text-align: center;
        padding-left: 0;
        padding-top: 5px;
    }
    
    .text-box li:before {
        position: static;
        margin-right: 10px;
    }
    
    .text-box .btn-1,
    .text-box .learn-more {
        display: block;
        width: 200px;
        margin: 10px auto;
        text-align: center;
    }
    
    .text-box .learn-more {
        display: inline-block;
        margin-top: 15px;
    }
    
    /* Reduce 3D effects on mobile for performance */
    .service-card:hover,
    .feature-card:hover,
    .how-it-work-service-card:hover {
        transform: translateY(-5px);
    }
    
    .hero-image {
        animation: none;
    }
}

/* Mobile - 480px and below */
@media (max-width: 480px) {
    .hero {
        padding: 30px 15px;
    }
    
    .hero-text h1 {
        font-size: 28px;
        line-height: 1.3;
    }
    
    .services {
        font-size: 15px;
    }
    
    .desc {
        font-size: 14px;
    }
    
    .buttons {
        flex-direction: column;
        width: 100%;
        align-items: center;
    }
    
    .buttons a {
        width: 100%;
        max-width: 280px;
    }
    
    .section-title,
    .how-it-work-section-title,
    .professionals h2 {
        font-size: 1.6rem;
        line-height: 1.3;
    }
    
    .services-section,
    .how-it-work-services-section {
        padding: 40px 15px;
    }
    
    .service-card,
    .how-it-work-service-card,
    .feature-card {
        padding: 25px 20px;
    }
    
    .service-icon img,
    .how-it-work-service-icon img {
        width: 70px;
        height: 70px;
    }
    
    .features {
        padding: 35px 15px;
    }
    
    .professionals {
        padding: 50px 15px;
    }
    
    .professionals .subtitle {
        font-size: 1rem;
        margin-bottom: 30px;
    }
    
    .text-box li {
        font-size: 1rem;
        margin-bottom: 12px;
    }
    
    .hero-image img {
        max-height: 300px;
    }
}

/* Small Mobile - 360px and below */
@media (max-width: 360px) {
    .hero-text h1 {
        font-size: 24px;
    }
    
    .section-title,
    .how-it-work-section-title,
    .professionals h2 {
        font-size: 1.4rem;
    }
    
    .service-content h3,
    .how-it-work-service-content h3 {
        font-size: 1.2rem;
    }
    
    .service-content p,
    .how-it-work-service-content p {
        font-size: 0.9rem;
    }
}